-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fresnel wrapper class to quickly and easily view GSD files in Notebooks #54
Conversation
for more information, see https://pre-commit.ci
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #54 +/- ##
==========================================
+ Coverage 95.54% 96.03% +0.49%
==========================================
Files 7 8 +1
Lines 449 606 +157
==========================================
+ Hits 429 582 +153
- Misses 20 24 +4
|
for more information, see https://pre-commit.ci
return self.snapshot.configuration.box[:3] * -self.view_axis | ||
|
||
@property | ||
def positions(self): |
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.
Looks like some lines in this method are untested.
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.
Yeah, I need to get a test gsd that has multiple frames, and values set for snapshot.particles.image
@chrisjonesBSU We can also visualize the simulation box by adding this line: L = pps.snapshot.configuration.box[0]
box = fresnel.geometry.Box(pps.scene, [L, L, L, 0, 0, 0], box_radius=.02) I found it in |
Ok, cool! I can add a setter that is on/off (True/False) to visualize the box |
This works as is right now, but is still a WIP, and open to feedback!
This is really just a wrapper for Fresnel that is designed around loading a GSD file, and visualizing different frames. All of the fresnel objects are automatically set up, and there are setters for just about all of the parameters for these objects making it easy to change something and view it.