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

ds004616-mriqc: "ValueError: Number of rows must be a positive integer, not 0" #93

Open
jbwexler opened this issue Oct 4, 2024 · 0 comments
Labels
mriqc Affects MRIQC

Comments

@jbwexler
Copy link
Collaborator

jbwexler commented Oct 4, 2024

About 2/3 of subjects produced similar errors:

Working directory: /node_tmp/work_dir/mriqc/ds004616_sub-12/mriqc_wf/funcMRIQC/func_report_wf/13ab13e416191a5aadfd130c247ec17cbc414239/PlotMosaicZoomed

Node inputs:

annotate = True
bbox_mask_file = <undefined>
cmap = Greys_r
dpi = 300
figsize = (11.69, 8.27)
in_file = ['/node_tmp/work_dir/mriqc/ds004616_sub-12/mriqc_wf/funcMRIQC/13ab13e416191a5aadfd130c247ec17cbc414239/mean/mapflow/_mean0/sub-12_ses-01_task-handgrasp_bold_desc-realigned_valid_tstat.nii.gz']
only_noise = False
out_file = mosaic.svg
title = <undefined>
view = ['axial', 'sagittal']

Traceback (most recent call last):
  File "/opt/conda/lib/python3.11/site-packages/mriqc/engine/plugin.py", line 64, in run_node
    result['result'] = node.run(updatehash=updatehash)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 1380, in _run_interface
    result = self._collate_results(
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 1249, in _collate_results
    for i, nresult, err in nodes:
  File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/utils.py", line 94, in nodelist_runner
    result = node.run(updatehash=updatehash)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/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 _PlotMosaicZoomed0.

Traceback:
        Traceback (most recent call last):
          File "/opt/conda/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 397, in run
            runtime = self._run_interface(runtime)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/nireports/interfaces/mosaic.py", line 143, in _run_interface
            plot_mosaic(
          File "/opt/conda/lib/python3.11/site-packages/nireports/reportlets/mosaic.py", line 629, in plot_mosaic
            panel_axs = subfigs[0].subgridspec(
                        ^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/matplotlib/gridspec.py", line 738, in subgridspec
            return GridSpecFromSubplotSpec(nrows, ncols, self, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/matplotlib/gridspec.py", line 504, in __init__
            super().__init__(nrows, ncols,
          File "/opt/conda/lib/python3.11/site-packages/matplotlib/gridspec.py", line 48, in __init__
            raise ValueError(
        ValueError: Number of rows must be a positive integer, not 0
@jbwexler jbwexler added the mriqc Affects MRIQC label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mriqc Affects MRIQC
Projects
None yet
Development

No branches or pull requests

1 participant