Skip to content
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

Flumpy: Don't allow converting 1D vectors to vec2/3 #648

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

ndevenish
Copy link
Collaborator

Previously, a size (3,) array would have erroneously converted to a 0x3 length vec3.

This is now explicitly forbidden; you must pass at least a (0, 3) multidimensional array.

Fixes #439.

Previously, a size (3,) array would have erroneously converted
to a 0x3 length vec3.

This is now explicitly forbidden; you must pass at least a (0, 3)
multidimensional array.

Fixes cctbx#439.
@ndevenish ndevenish enabled auto-merge (squash) July 25, 2023 17:24
@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Merging #648 (6235e3c) into main (930be09) will not change coverage.
The diff coverage is n/a.

❗ Current head 6235e3c differs from pull request most recent head 938ea91. Consider uploading reports for the commit 938ea91 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #648   +/-   ##
=======================================
  Coverage   39.40%   39.40%           
=======================================
  Files         178      178           
  Lines       15542    15542           
  Branches     3004     3004           
=======================================
  Hits         6125     6125           
  Misses       8836     8836           
  Partials      581      581           

@ndevenish ndevenish merged commit 436a1b6 into cctbx:main Jul 25, 2023
9 of 10 checks passed
@ndevenish ndevenish deleted the flumpy_439 branch July 26, 2023 08:38
toastisme pushed a commit to toastisme/dxtbx that referenced this pull request Jul 18, 2024
Previously, a size (3,) array would have erroneously converted
to a 0x3 length vec3.

This is now explicitly forbidden; you must pass at least a (0, 3)
multidimensional array.

Fixes cctbx#439.
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.

Flumpy: Single entry vec_from_numpy gives unexpected results
1 participant