allow custom config file in derivative BIDSLayout
@@ -139,6 +139,9 @@ class BIDSLayout(object):
if description and description.get("DatasetType") == "derivative":
if validate:
validate_derivative_paths([root], self)
+ if config:
+ config += ["bids", "derivatives"]
+ else:
config = ["bids", "derivatives"]
init_args = dict(root=root, absolute_paths=absolute_paths,
