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

ds004283-fmriprep: "ValueError: operands could not be broadcast together with shapes (3,3) (4,)" #97

Open
jbwexler opened this issue Nov 4, 2024 · 0 comments
Labels
fmriprep Affects fMRIPrep

Comments

@jbwexler
Copy link
Collaborator

jbwexler commented Nov 4, 2024

2/4 subjects:

Node: fmriprep_24_1_wf.sub_01_wf.fmap_preproc_wf.wf_auto_00000.bs_filter
Working directory: /node_tmp/work_dir/fmriprep/ds004283_sub-01/fmriprep_24_1_wf/sub_01_wf/fmap_preproc_wf/wf_auto_00000/bs_filter

Node inputs:

bs_spacing = [(16.0, 16.0, 10.0)]
debug = False
extrapolate = True
in_data = <undefined>
in_mask = <undefined>
recenter = median
ridge_alpha = 0.0001
zooms_min = 1.0

Traceback (most recent call last):
  File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
    result["result"] = node.run(updatehash=updatehash)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 771, in _run_command
    raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node bs_filter.

Traceback:
        Traceback (most recent call last):
          File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 397, in run
            runtime = self._run_interface(runtime)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/sdcflows/interfaces/bspline.py", line 155, in _run_interface
            bs_grids = [
                       ^
          File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/sdcflows/interfaces/bspline.py", line 156, in <listcomp>
            bspline_grid(fmapnii, control_zooms_mm=sp) for sp in self.inputs.bs_spacing
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/sdcflows/interfaces/bspline.py", line 549, in bspline_grid
            dir_cos = img.affine[:3, :3] / im_zooms
                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
        ValueError: operands could not be broadcast together with shapes (3,3) (4,)
@jbwexler jbwexler added the fmriprep Affects fMRIPrep label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fmriprep Affects fMRIPrep
Projects
None yet
Development

No branches or pull requests

1 participant