Closed shnizzedy closed 2 weeks ago
@aghayoor Could I trouble you to have a look at this? It looks like you added the interface in #3263.
@shnizzedy If we don't hear back, I think you can go ahead with the most obvious fixes to you.
- I'm not 100% sure, but I think
ts_Z_corr
is meant to bets_wb_Z
based on the structure of the check and the definitions of the arguments for 3dNetCorr.
That seems plausible.
- I'm also not sure, but I think the check should check if those values are
True
rather than just if they are defined?
Yes, just remove the isdefined()
. Undefined evaluates to False
, so it's almost always safe to use if self.inputs.X
.
Hi @effigies , It’s been a while since I added this, so I don’t fully remember the details, but your suggested fix makes sense to me. Thanks!
Summary
In
NetCorr
, there's a check https://github.com/nipy/nipype/blob/237a9a7ca244ca87916e1f9c5bd73c3f08c00c5d/nipype/interfaces/afni/preprocess.py#L2744 which causesif
ts_wb_corr
is not specified.ts_Z_corr
is meant to bets_wb_Z
based on the structure of the check and the definitions of the arguments for 3dNetCorr.True
rather than just if they are defined?Actual behavior
Expected behavior
ts_wb_corr
can be unspecified and interface will be useable.How to replicate the behavior
nipype.interfaces.afni.preprocess.NetCorr
withoutts_wb_corr
Script/Workflow details
(FCP-INDI/C-PAC/CPAC/connectome/connectivity_matrix.py#L163-L209@
043a004
)Platform details:
Execution environment
Choose one
1.8.6
]