You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I sequence both tasks manually, I get the list of BIDS files from the source path as expected.
If I compose them in a workflow, I still get the BIDS files but moved to the workflow working directory.
I have never witnessed that behavior before, and believe this may be a regression compared to versions of Pydra prior to 0.23. In my opinion, results obtained from the sequential task execution and the workflow should be equivalent. Besides, copying the BIDS files can become a big problem if the dataset in huge in terms of number of participant / session combinations, or if the queried modality features large volume data, such as DWI.
A quick debug session indicates that this area of the code may be at cause.
The text was updated successfully, but these errors were encountered:
So is the problem that relative paths are treated as being relative to the internal working directory instead of the working directory the workflow is launched from, or are absolute paths also being treated as relative to the internal directory?
So is the problem that relative paths are treated as being relative to the internal working directory instead of the working directory the workflow is launched from, or are absolute paths also being treated as relative to the internal directory?
The former I believe. Absolute paths should be untouched, relative paths (possibly generated by the task) should be turned absolute using the current copy mechanism to the task or workflow directory. This way files always get passed as absolute paths between tasks or workflows, which avoids potentially expensive copies.
I have implemented a task which reads a bunch of files from a BIDS dataset, with the following signatures:
If I sequence both tasks manually, I get the list of BIDS files from the source path as expected.
If I compose them in a workflow, I still get the BIDS files but moved to the workflow working directory.
I have never witnessed that behavior before, and believe this may be a regression compared to versions of Pydra prior to 0.23. In my opinion, results obtained from the sequential task execution and the workflow should be equivalent. Besides, copying the BIDS files can become a big problem if the dataset in huge in terms of number of participant / session combinations, or if the queried modality features large volume data, such as DWI.
A quick debug session indicates that this area of the code may be at cause.
The text was updated successfully, but these errors were encountered: