-
Notifications
You must be signed in to change notification settings - Fork 37
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 movie2d. Resolves #832. #833
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this @Yurlungur, sorry I didn't notice this. A few small comments if you agree with them and want to make those changes, but I'll go ahead and approve now.
scripts/python/packages/parthenon_tools/parthenon_tools/movie2d.py
Outdated
Show resolved
Hide resolved
scripts/python/packages/parthenon_tools/parthenon_tools/movie2d.py
Outdated
Show resolved
Hide resolved
scripts/python/packages/parthenon_tools/parthenon_tools/movie2d.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks for the quick fix and the ArgumentParser
is definitely an improvement.
PR Summary
As @pgrete noted in #832 , the movie script is currently broken. This was due to the change to outputting more than just vector- or scalar-valued variables. Here I fix this by allowing the user to optionally pass in tensor components, which default to 0 for a scalar.
I wanted to also add a test to make sure the movie script was working. And there's a way to do this---we can generate a png file as a gold file and compare to that---but I wasn't sure if we wanted to pull in the additional dependency of Pillow. See here. If people are ok with including Pillow as an additional python dependency, then we can add that test later. I don't have the time to do so right now.
PR Checklist