Skip to content

fix(vispy): handle case where no rotation is required #451

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

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

sanjayankur31
Copy link
Member

Otherwise scipy errors with:

  File ".../pyneuroml/plot/PlotMorphologyVispy.py", line 1714, in create_mesh
    rot_obj = Rotation.from_matrix(rot_matrix)
  File "_rotation.pyx", line 1136, in scipy.spatial.transform._rotation.Rotation.from_matrix
ValueError: Non-positive determinant (left-handed or null coordinate frame) in rotation matrix 0: [[0. 0. 0.]
 [0. 0. 0.]
 [0. 0. 0.]].

Otherwise scipy errors with:

```
  File ".../pyneuroml/plot/PlotMorphologyVispy.py", line 1714, in create_mesh
    rot_obj = Rotation.from_matrix(rot_matrix)
  File "_rotation.pyx", line 1136, in scipy.spatial.transform._rotation.Rotation.from_matrix
ValueError: Non-positive determinant (left-handed or null coordinate frame) in rotation matrix 0: [[0. 0. 0.]
 [0. 0. 0.]
 [0. 0. 0.]].

```
@sanjayankur31 sanjayankur31 merged commit c4c5e2c into development Jul 2, 2025
6 checks passed
@sanjayankur31 sanjayankur31 deleted the fix-mesh-zeros branch July 2, 2025 15:34
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.

1 participant