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

Getting correct length of MPG movie. #832

Merged
merged 1 commit into from
May 21, 2024

Conversation

kenkehoe
Copy link
Contributor

There is an issue guessing the duration of the MPG movie when converting to another file type. If the time step of the movie is more than 0.1 then there can be multiple images that are the same. Checking multiple images being the same is how to determine the end of the movie. This fix allows some fudge factor by checking for multiple repeating images to signify the end.

  • [ X] Documentation reflects changes
  • [ X] PEP8 Standards or use of linter
  • [ X] Xarray Dataset or DataArray variable naming follows 'ds' or 'da' naming

… step of the movie is more than 0.1 then there can be multiple images that are the same. Checking multiple images being the same is how to determine the end of the movie. This fix allows some fudge factor by checking for multiple repeating images to signify the end.
Copy link
Collaborator

@zssherman zssherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a reasonable fix to me! I've never heard of the deque module before, learned something new.

@zssherman zssherman merged commit 8ac47d0 into ARM-DOE:main May 21, 2024
19 checks 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.

2 participants