Closed NicolasGensollen closed 2 months ago
As per the BIDS specifications, the dataset_description.json file is mandatory.
This PR proposes the following:
dataset_description.json
check_bids_folder()
DatasetType
Note: An unused function _check_dataset_description_exists_in_caps() has been added to prepare for #1101
_check_dataset_description_exists_in_caps()
Requires data PR https://github.com/aramis-lab/clinica_data_ci/pull/54, https://github.com/aramis-lab/clinica_data_ci/pull/55, and https://github.com/aramis-lab/clinica_data_ci/pull/56 since some BIDS folders from the CI data do not have a dataset_description.json file.
As per the BIDS specifications, the dataset_description.json file is mandatory.
This PR proposes the following:
dataset_description.json
file in the utility functioncheck_bids_folder()
.DatasetType
enumeration instead of relying on "BIDS" and "CAPS" strings (might move it later to a better place in the code base...).check_bids_folder()
to have smaller and more readable tests.Note: An unused function
_check_dataset_description_exists_in_caps()
has been added to prepare for #1101Requires data PR https://github.com/aramis-lab/clinica_data_ci/pull/54, https://github.com/aramis-lab/clinica_data_ci/pull/55, and https://github.com/aramis-lab/clinica_data_ci/pull/56 since some BIDS folders from the CI data do not have a
dataset_description.json
file.