Evan Kersey 03/11/2020 practice bids data grabber and layout """ print("init bidsGrabber") from nipype.interfaces.io import BIDSDataGrabber from nipype.pipeline import Node, MapNode, Workflow from bids.layout import BIDSLayout from nipype.interfaces.utility import Function #make the layout layout = BIDSLayout("/mnt/Filbey/Evan/MJXProcessing/examples/examples/BIDS") layout.get_subjects layout.get_modalities() layout.get_session() print(layout.get(subject=[], extensions=['.nii'], return_type='file')) """ #create first node #this uses the layout to make a node bg = Node(BIDSDataGrabber(), name='bids-grabber', layout = layout) #this defines the root dir # ToDo fixme File "/mnt/Filbey/Evan/MJXProcessing/env/lib/python3.6/site-packages/bids/layout/layout.py", line 460, in _validate_root raise ValueError("BIDS root does not exist: %s" % self.root) ValueError: BIDS root does not exist: /tmp/tmp9g7ddldw/bids-grabber/examples/examples/BIDS