have bidslayout take kwargs and then pass them to the layout class on init
@@ -14,11 +14,11 @@ __all__ = ['BIDSLayout']
class BIDSLayout(Layout):
- def __init__(self, path, config=None):
+ def __init__(self, path, config=None, **kwargs):
if config is None:
root = dirname(realpath(__file__))
config = pathjoin(root, 'config', 'bids.json')
- super(BIDSLayout, self).__init__(path, config, dynamic_getters=True)
+ super(BIDSLayout, self).__init__(path, config, dynamic_getters=True, **kwargs)
def get_metadata(self, path):
sidecarJSON = path.replace(".nii.gz", ".json").replace(".nii", ".json")
