sovabids.bids#

Module with bids utilities.

Module Contents#

Functions#

update_dataset_description(dataset_description, bids_path)

Update the dataset_description.json located at bids_path given a dictionary.

sovabids.bids.update_dataset_description(dataset_description, bids_path, do_not_create=False)[source]#

Update the dataset_description.json located at bids_path given a dictionary.

If it exist, updates with the new given values. If it doesn’t exist, then creates it.

Parameters:
  • dataset_description (dict) – The dataset_description dictionary to update with, following the schema of the dataset_description.json file of bids.

  • bids_path (str) – The bids_path of the dataset description file, basically the folder where the file is.

  • do_not_create (bool) – If true, does not create the file if it does not exist.