-
Notifications
You must be signed in to change notification settings - Fork 3
Automatically center box when converting to GSD. #80
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
Conversation
…is made of box data instead of reference.
|
We had another bug floating around our conversion from_hoomd_gsd. We had previously set I think I've ironed out all the problems with how the conversions work and have checked both orthorhombic and triclinic boxes look correct in Ovito going both directions. @mphoward, please let me know if you see anything else that needs tweaked here! |
…eature/hoomd-center-box
…der has_particles.
|
@mphoward, I've applied the suggested edits! This should be ready for you to take another look! |
mphoward
left a comment
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! Two small suggestions to simplify the code, then this looks good to me.
|
I've made those two changes, so this should be good to go! |
|
Thank you! |
This adds functionality to automatically center box for conversion to GSD rather than raise an error.
Additionally, this fixes a bug where tilts were not being converted to HOOMD-blue's convention in
to_hoomd_gsd(). I believe this error went unnoticed in our unit tests because we were creating a reference to the tilt data infrom_hoomd_gsd()rather than a copy.