Skip to content

Commit

Permalink
Inflate motion in last 5 volumes of test data.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 29, 2023
1 parent 6fba92c commit eb8165c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xcp_d/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eb8165c

Please sign in to comment.