-
Notifications
You must be signed in to change notification settings - Fork 2
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 assignment of compartment grid points #192
Conversation
* user relative size for grid points in simularium
Codecov ReportPatch and project coverage have no change.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #192 +/- ##
=======================================
Coverage 98.52% 98.52%
=======================================
Files 16 16
Lines 476 476
=======================================
Hits 469 469
Misses 7 7 ☔ View full report in Codecov by Sentry. |
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 good to me
Did you run this on your local machine? If so, the timing sounds about right! I was running this on the dgx workstation which would be faster than a laptop. |
Problem
This PR includes various updates to grid creation and visualization and fixes errors in
main
while trying to pack nested compartments.When assigning whether grid points are inside or outside a compartment, only grid points with a compartment id of 0 were checked and updated. This caused an issue if the compartments were nested, and the outer compartment was processed before the inner (as it should).
Solution
points_in_mesh
now updates the identity of grid points where compartment id <= the id of the current compartment being assigned. This assumes that larger compartments are created before smaller ones.The
buildgrid_trimesh
function and distance calculations ingradient.py
was updated to streamline and speed up grid creation. Visualization of grid points was cleaned up to remove unused values, improve readability and visibility.Change summary:
Gradient calculations:
surface
Grid creation:
Grid visualization:
Steps to Verify:
pack -r examples/recipes/v2/peroxisomes_surface_gradient.json -c examples/packing-configs/peroxisome_packing_config.json
Screenshots (optional):
Time for packing
peroxisomes_surface_gradient
:fix/multiple_compartments
:Keyfiles (delete if not relevant):