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

[FIX] Set length to 1 when np.squeeze returns a 0D array #3713

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

man-shu
Copy link

@man-shu man-shu commented Feb 11, 2025

Summary

Fixes #3712 .

List of changes proposed in this PR (pull-request)

  • try getting the len of idxs
  • if it fails with TypeError (which happens when idxs is a 0D array)
  • set nels to 1

nipype/algorithms/misc.py Outdated Show resolved Hide resolved
@effigies
Copy link
Member

@man-shu I'm not sure if this code actually gets tested by our tests. If you're testing on your end, please make sure that it works in cases where it was previously failing.

Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 73.05%. Comparing base (bc456dd) to head (2c8017d).

Files with missing lines Patch % Lines
nipype/algorithms/misc.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3713      +/-   ##
==========================================
- Coverage   73.06%   73.05%   -0.02%     
==========================================
  Files        1278     1278              
  Lines       59356    59355       -1     
==========================================
- Hits        43367    43359       -8     
- Misses      15989    15996       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@man-shu
Copy link
Author

man-shu commented Feb 11, 2025

@man-shu I'm not sure if this code actually gets tested by our tests. If you're testing on your end, please make sure that it works in cases where it was previously failing.

Ok will update you on that.

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.

[BUG] Merging rois outputs from bedpostx_parallel fails
2 participants