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 movie2d. Resolves #832. #833

Merged
merged 6 commits into from
Feb 14, 2023
Merged

fix movie2d. Resolves #832. #833

merged 6 commits into from
Feb 14, 2023

Conversation

Yurlungur
Copy link
Collaborator

@Yurlungur Yurlungur commented Feb 13, 2023

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

  • Code passes cpplint
  • New features are documented.
  • Adds a test for any bugs fixed. Adds tests for new features.
  • Code is formatted
  • Changes are summarized in CHANGELOG.md
  • CI has been triggered on Darwin for performance regression tests.
  • Docs build
  • (@lanl.gov employees) Update copyright on changed files

@Yurlungur Yurlungur requested review from brryan and pgrete February 13, 2023 20:03
@Yurlungur Yurlungur self-assigned this Feb 13, 2023
Copy link
Collaborator

@brryan brryan left a 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.

@Yurlungur Yurlungur linked an issue Feb 13, 2023 that may be closed by this pull request
Copy link
Collaborator

@pgrete pgrete left a 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.

@pgrete
Copy link
Collaborator

pgrete commented Feb 14, 2023

Regarding image diffs, I also thought about those in the context of #810 so I'm in favor of adding those.
I'll open a new issue: #834

@pgrete pgrete merged commit a619994 into develop Feb 14, 2023
@pgrete pgrete deleted the jmm/fix-movie2d branch February 14, 2023 07:51
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.

Movie python script not working
4 participants