Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[BUG] Merging rois outputs from bedpostx_parallel fails #3712

Copy link
Copy link
Closed
@man-shu

Description

@man-shu
Issue body actions

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.