Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get observation date videos #398

Conversation

dgarciabriseno
Copy link
Contributor

@dgarciabriseno dgarciabriseno commented Jul 16, 2024

Fixes Helioviewer-Project/helioviewer.org#580

Among other things, this removes the call to _getTimeStamps when a HelioviewerMovie instance is created, which is a long process. This improves the speed of getObservationDateVideos substantially which will unblock sunlab's minimal view.

The other things:

  • Added a MovieNotCompletedException to the HelioviewerMovie class which is thrown in functions that only work after a movie has been processed. Some things like the number of frames, the movie's title, and the movie's length are only known after the movie has been processed.
  • Added tests for HelioviewerMovie which tests the new exception cases, that are still built successfully, and that the details provided after building the movie are correct.
  • Changed a query from count(id) to count(*) since it appears to greatly improve the query speed.
  • Add the full traceback for errors occurring during movie building to help with debugging.

added exceptions for functions that can't be called before the movie is processed.
added tests
@dgarciabriseno dgarciabriseno merged commit 2bfb71e into Helioviewer-Project:main Jul 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] - getObservationDateVidoes times out on some dates - Impacts Sunlab Open Investigation
1 participant