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

[BUG] Merging rois outputs from bedpostx_parallel fails #3712

Open
man-shu opened this issue Feb 11, 2025 · 0 comments · May be fixed by #3713
Open

[BUG] Merging rois outputs from bedpostx_parallel fails #3712

man-shu opened this issue Feb 11, 2025 · 0 comments · May be fixed by #3713

Comments

@man-shu
Copy link

man-shu commented Feb 11, 2025

I initially posted on neurostars about this: https://neurostars.org/t/nipype-merging-outputs-from-bedpostx-parallel-fails/31733/1. But I think I have a quick fix, so reporting it here. Will also do PR.

As reported in the neurostars post, I am trying to run bedpostx_parallel workflow in old (?) nipype. It works fine during all of my test runs on downsampled data (and even some previous runs on full res data).

However, when I recently tried to run it on the full res data, it failed at the step where it tried to merge all the outputs from parallel nodes into single files.

I looked into the issue, and it seems that on this line:

idxs = np.squeeze(f["arr_0"])

the output of np.squeeze is a 0D array, and getting the length of 0D array in a subsequent line isn’t possible.

nels = len(idxs)

I could just be an anomaly due to the heuristic nature of the algorithm, and it would probably not be an issue on a subsequent run. But I still think that it could be handled within nipype.

Here's the error traceback:

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 a pull request may close this issue.

1 participant