Skip to content

Default value for write_bounding_box paramter is not defined in pypreprocess/nipype_preproc_spm_utils.py #312

@tbng

Description

@tbng

When trying to do preprocessing with Pypreprocess I encountered the error:

Traceback (most recent call last):
  File "preproc.py", line 71, in <module>
    caching=True,
  File "/home/bnguyen/build/dev_env_1/lib/python3.6/site-packages/pypreprocess/nipype_preproc_spm_utils.py", line 1445, in do_subject_preproc
    **kwargs.get("interface_normalize", {}))
  File "/home/bnguyen/build/dev_env_1/lib/python3.6/site-packages/pypreprocess/nipype_preproc_spm_utils.py", line 858, in _do_subject_normalize
    write_bounding_box=write_bounding_box,
NameError: name 'write_bounding_box' is not defined

Apparently in the commit 47b5149#diff-3eb7a5e605c5b2a38cb0f366d23052a6 the default value for the paramter write_bounding_box is removed by @AGrigis . I can create a PR for this but I don't really know what should be the default value of this parameter (the last default value is [[-78, -112, -50], [78, 76, 85]] but has been commented out before this commit.

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