You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If presented with a subject with an empty anat/ directory, PyBIDS will raise an unhandled StopIteration:
File "/opt/conda/lib/python3.9/site-packages/fmriprep/config.py", line 472, in init
cls._layout = BIDSLayout(
File "/opt/conda/lib/python3.9/site-packages/bids/layout/layout.py", line 152, in __init__
indexer(self)
File "/opt/conda/lib/python3.9/site-packages/bids/layout/index.py", line 109, in __call__
self._index_dir(self._layout._root, self._config)
File "/opt/conda/lib/python3.9/site-packages/bids/layout/index.py", line 193, in _index_dir
self._index_dir(d, list(config), default_action=default)
File "/opt/conda/lib/python3.9/site-packages/bids/layout/index.py", line 193, in _index_dir
self._index_dir(d, list(config), default_action=default)
File "/opt/conda/lib/python3.9/site-packages/bids/layout/index.py", line 173, in _index_dir
_, dirnames, filenames = next(os.walk(path))
Running through pdb:
StopIteration
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /opt/conda/lib/python3.9/site-packages/bids/layout/index.py(173)_index_dir()
-> _, dirnames, filenames = next(os.walk(path))
(Pdb) print(path)
/data/sub-050202002B/anat
(Pdb) up
> /opt/conda/lib/python3.9/site-packages/bids/layout/index.py(193)_index_dir()
-> self._index_dir(d, list(config), default_action=default)
(Pdb) print(d)
/data/sub-050202002B/anat
(Pdb) up
> /opt/conda/lib/python3.9/site-packages/bids/layout/index.py(193)_index_dir()
-> self._index_dir(d, list(config), default_action=default)
(Pdb) print(d)
/data/sub-050202002B
If presented with a subject with an empty
anat/
directory, PyBIDS will raise an unhandledStopIteration
:Running through pdb:
Initially reported in nipreps/fmriprep#2902
The text was updated successfully, but these errors were encountered: