Skip to content

Fix CorpusCallosum NumPy 2.5 compatibility#842

Open
karl-koschutnig wants to merge 3 commits into
Deep-MI:devfrom
karl-koschutnig:fix/cc-numpy2
Open

Fix CorpusCallosum NumPy 2.5 compatibility#842
karl-koschutnig wants to merge 3 commits into
Deep-MI:devfrom
karl-koschutnig:fix/cc-numpy2

Conversation

@karl-koschutnig

Copy link
Copy Markdown

This separates the CorpusCallosum NumPy 2 compatibility fix from the BIDS PR.

Changes:

  • fix 2D vector handling affected by NumPy 2 in CorpusCallosum
  • add a focused regression test for the affected code paths

@ClePol
ClePol self-requested a review July 9, 2026 11:54
@m-reuter

m-reuter commented Jul 9, 2026

Copy link
Copy Markdown
Member

Behaviour might have changed in numpy 2.5, we used 2.4.4 in our last release and testing.

@m-reuter m-reuter changed the title Fix CorpusCallosum NumPy 2 compatibility Fix CorpusCallosum NumPy 2.5 compatibility Jul 16, 2026
@m-reuter

Copy link
Copy Markdown
Member

please remove both tests (one is for bids anyway and not related to this PR, the others test mainly the shape equivalence and do not really help much). Also not sure about the _load_module, why that is needed.

The BIDS passthrough test is unrelated to this fix, and the numpy
compat test mainly asserted output shapes without exercising the
underlying cross-product behavior, so it added little value. This
also removes the only usage of _load_module, which loaded the
CorpusCallosum modules by file path since they aren't installed as
an importable package.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

3 participants