Skip to content

Commit

Permalink
Update concatenation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Oct 10, 2023
1 parent b8df302 commit e60a656
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions xcp_d/workflows/concatenation.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def init_concatenate_data_wf(
)
# fmt:off
workflow.connect([
(concatenate_inputs, filtered_motion_sources, [("filtered_motion", "in1")]),
(filter_out_failed_runs, filtered_motion_sources, [("filtered_motion", "in1")]),
(filtered_motion_sources, ds_filtered_motion, [("bids_uris", "Sources")]),
])
# fmt:on
Expand Down Expand Up @@ -291,7 +291,7 @@ def init_concatenate_data_wf(
)
# fmt:off
workflow.connect([
(concatenate_inputs, temporal_mask_sources, [("temporal_mask", "in1")]),
(filter_out_failed_runs, temporal_mask_sources, [("temporal_mask", "in1")]),
(temporal_mask_sources, ds_temporal_mask, [("bids_uris", "Sources")]),
])
# fmt:on
Expand Down Expand Up @@ -330,7 +330,7 @@ def init_concatenate_data_wf(
)
# fmt:off
workflow.connect([
(concatenate_inputs, timeseries_sources, [("timeseries", "in1")]),
(filter_out_failed_runs, timeseries_sources, [("timeseries", "in1")]),
(timeseries_sources, ds_timeseries, [("bids_uris", "Sources")]),
])
# fmt:on
Expand Down Expand Up @@ -385,7 +385,7 @@ def init_concatenate_data_wf(
)
# fmt:off
workflow.connect([
(concatenate_inputs, timeseries_ciftis_sources, [("timeseries_ciftis", "in1")]),
(filter_out_failed_runs, timeseries_ciftis_sources, [("timeseries_ciftis", "in1")]),
(timeseries_ciftis_sources, ds_timeseries_cifti_files, [("bids_uris", "Sources")]),
])
# fmt:on
Expand Down Expand Up @@ -475,7 +475,9 @@ def init_concatenate_data_wf(
)
# fmt:off
workflow.connect([
(concatenate_inputs, censored_filtered_bold_sources, [("censored_denoised_bold", "in1")]),
(filter_out_failed_runs, censored_filtered_bold_sources, [
("censored_denoised_bold", "in1"),
]),
(censored_filtered_bold_sources, ds_censored_filtered_bold, [("bids_uris", "Sources")]),
])
# fmt:on
Expand All @@ -502,7 +504,7 @@ def init_concatenate_data_wf(
)
# fmt:off
workflow.connect([
(concatenate_inputs, smoothed_denoised_bold_sources, [
(filter_out_failed_runs, smoothed_denoised_bold_sources, [
("smoothed_denoised_bold", "in1"),
]),
(smoothed_denoised_bold_sources, ds_smoothed_denoised_bold, [
Expand Down Expand Up @@ -536,7 +538,7 @@ def init_concatenate_data_wf(
# fmt:off
workflow.connect([
(clean_name_source, ds_interpolated_filtered_bold, [("name_source", "source_file")]),
(concatenate_inputs, ds_interpolated_filtered_bold, [
(filter_out_failed_runs, ds_interpolated_filtered_bold, [
("interpolated_filtered_bold", "in_file"),
]),
])
Expand Down

0 comments on commit e60a656

Please sign in to comment.