Closed darcangelomauro closed 6 months ago
hi @Roland-djee, as discussed with @darcangelomauro yesterday, I have isolated the bug to _shape_slice()
in slicing.py
and am working on a fix to correct a wrong assumption about the projected points that had resulted in a 1D array instead of a 2D array.
hi @Roland-djee, as discussed with @darcangelomauro yesterday, I have isolated the bug to
_shape_slice()
inslicing.py
and am working on a fix to correct a wrong assumption about the projected points that had resulted in a 1D array instead of a 2D array.
Hey @Misty-W sounds good. Do you need anything from me at this point ? Happy to help here.
Hey @Misty-W sounds good. Do you need anything from me at this point ? Happy to help here.
Thanks @Roland-djee, I fixed it already, just waiting for @FarLab's approval to merge.
When taking slices of the 3d-rism density along planes which are not parallel to the x,y,z axes, occasionally it can happen that the slice turns out empty.
The bug can be reproduced by running this notebook, section "slice along skewed plane (empty slices error)". Be mindful of the fact that the first bug presented in the notebook, section "slice along y axis: error happening", has been solved with #65.
The notebook takes the DNA 3D-RISM file and the file containing the position of some known water molecules:
The water molecule positions are used to define a vector
N
which identifies a certain direction in space (which should be interpreted as the normal to the plane defined by the water molecules):Several planes are then defined by taking the water molecule positions,
waters
, and moving an amountt
along the normalN
:The slicer is then called:
But upon drawing the resulting canvases, they turn out empty.