From 3d702532cd8e2c1ecc14f6f4d11c72b61ab446a6 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Sat, 11 May 2024 10:18:18 -0400 Subject: [PATCH] Update tests. --- src/fmripost_aroma/tests/conftest.py | 6 +++--- .../tests/data/dataset_description.json | 20 +++++++++++++++++++ ...152NLin6Asym_res-02_desc-preproc_bold.json | 3 +++ ...2NLin6Asym_res-02_desc-preproc_bold.nii.gz | 0 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 src/fmripost_aroma/tests/data/dataset_description.json create mode 100644 src/fmripost_aroma/tests/data/sub-01/func/sub-01_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.json create mode 100644 src/fmripost_aroma/tests/data/sub-01/func/sub-01_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.nii.gz diff --git a/src/fmripost_aroma/tests/conftest.py b/src/fmripost_aroma/tests/conftest.py index 25797b8..ea78d58 100644 --- a/src/fmripost_aroma/tests/conftest.py +++ b/src/fmripost_aroma/tests/conftest.py @@ -11,17 +11,17 @@ def pytest_addoption(parser): parser.addoption( '--working_dir', action='store', - default='/home/runner/work/fmripost-aroma/fmripost-aroma/tests/work', + default='/home/runner/work/pytests/work', ) parser.addoption( '--data_dir', action='store', - default='/home/runner/work/fmripost-aroma/fmripost-aroma/tests/data', + default='/home/runner/work/pytests/data', ) parser.addoption( '--output_dir', action='store', - default='/home/runner/work/fmripost-aroma/fmripost-aroma/tests/out', + default='/home/runner/work/pytests/out', ) diff --git a/src/fmripost_aroma/tests/data/dataset_description.json b/src/fmripost_aroma/tests/data/dataset_description.json new file mode 100644 index 0000000..f0bf9df --- /dev/null +++ b/src/fmripost_aroma/tests/data/dataset_description.json @@ -0,0 +1,20 @@ +{ + "Name": "fMRIPrep - fMRI PREProcessing workflow", + "BIDSVersion": "1.4.0", + "DatasetType": "derivative", + "GeneratedBy": [ + { + "Name": "fMRIPrep", + "Version": "22.0.0", + "CodeURL": "https://github.com/nipreps/fmriprep/archive/22.0.0.tar.gz" + } + ], + "HowToAcknowledge": "", + "SourceDatasets": [ + { + "URL": "https://doi.org/10.18112/openneuro.ds001419.v1.0.1", + "DOI": "10.18112/openneuro.ds001419.v1.0.1" + } + ], + "License": "CC0" +} diff --git a/src/fmripost_aroma/tests/data/sub-01/func/sub-01_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.json b/src/fmripost_aroma/tests/data/sub-01/func/sub-01_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.json new file mode 100644 index 0000000..b5ef1f2 --- /dev/null +++ b/src/fmripost_aroma/tests/data/sub-01/func/sub-01_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.json @@ -0,0 +1,3 @@ +{ + "RepetitionTime": 2 +} \ No newline at end of file diff --git a/src/fmripost_aroma/tests/data/sub-01/func/sub-01_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.nii.gz b/src/fmripost_aroma/tests/data/sub-01/func/sub-01_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.nii.gz new file mode 100644 index 0000000..e69de29