From eb8165c4f0e6f961570dc94eb702e30b9218e57b Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 29 Sep 2023 11:40:02 -0400 Subject: [PATCH] Inflate motion in last 5 volumes of test data. --- xcp_d/tests/test_cli.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xcp_d/tests/test_cli.py b/xcp_d/tests/test_cli.py index d919d8c7d..55a08bd03 100644 --- a/xcp_d/tests/test_cli.py +++ b/xcp_d/tests/test_cli.py @@ -210,6 +210,15 @@ def test_pnc_cifti(data_dir, output_dir, working_dir): test_data_dir = get_test_data_path() filter_file = os.path.join(test_data_dir, "pnc_cifti_filter.json") + motion_file = os.path.join( + dataset_dir, + "sub-1648798153/ses-PNC1/func", + "sub-1648798153_ses-PNC1_task-rest_desc-confounds_timeseries.tsv", + ) + motion_df = pd.read_table(motion_file) + motion_df.loc[-5:, "trans_x"] = 100 + motion_df.to_csv(motion_file, sep="\t", index=False) + parameters = [ dataset_dir, out_dir,