-
Notifications
You must be signed in to change notification settings - Fork 59
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
AttributeError: 'Input' object has no attribute 'files_hash' with split and combine #675
Comments
@tclose I tried re-running this script with current, but got the following error:
|
Hi @ghisvail, this is the main syntactical change in the PR. You now need to pass the inputs to be split to the workflow.add(
ants.N4BiasFieldCorrection(name="bias_correction", input_image=workflow.reader.lzout.T1w))
workflow.bias_correction.split("input_image") becomes workflow.add(
ants.N4BiasFieldCorrection(name="bias_correction"))
workflow.bias_correction.split("input_image", input_image=workflow.reader.lzout.T1w) NB: you can drop the "splitter" in this case and just use |
@tclose thanks for the fix. I am now getting the following error:
from the following workflow submission: import sys
wf = t1_linear(name="t1-linear", dataset_path=sys.argv[1])
with Submitter() as sub:
res = sub(wf)
print(res) I tried with and without the split and combine semantics, both yield the same error. |
I am trying to split a simple workflow consisting of 3 sequential steps (bias correction, registration and resampling) on multiple T1w images in a BIDS dataset. The code is provided below and consists of 3 ANTs tasks with a custom reader
task attached upfront.
The workflow fetches the files fine, processes the bias correction step in parallel but then fails with a rather generic
AttributeError: 'Input' object has no attribute 'files_hash'
. The code listing and full traceback are available below.It is worth noting that the workflow runs fine if I provide a reader fetching a single file (
read_one_bidsfile
) and remove the split and combine steps. It also works if I provide the list of files manually to the workflow and don't use a reader task.Code:
Traceback:
The text was updated successfully, but these errors were encountered: