diff --git a/AFQ/api/group.py b/AFQ/api/group.py index 292b67bd8..7e676a438 100644 --- a/AFQ/api/group.py +++ b/AFQ/api/group.py @@ -128,8 +128,14 @@ def __init__(self, if not op.exists(bids_path): raise ValueError("bids_path not found") if not op.exists(op.join(bids_path, "dataset_description.json")): - raise ValueError("There must be a dataset_description.json" - + " in bids_path") + dataset_description = { + "Name": "unknown", + "BIDSVersion": "unknown", + "Authors": ["unknown"] + } + dd_file = op.join(bids_path, 'dataset_description.json') + with open(dd_file, 'w') as outfile: + json.dump(dataset_description, outfile) if not isinstance(bids_filters, dict): raise TypeError("bids_filters must be a dict") # preproc_pipeline typechecking handled by pyBIDS