Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Nov 13, 2023
1 parent b8c683b commit 21143de
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions aslprep/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,12 +463,15 @@ def init(cls):
),
),
)
cls._layout = BIDSLayout(
str(cls.bids_dir),
database_path=_db_path,
reset_database=cls.bids_database_dir is None,
indexer=_indexer,
)
try:
cls._layout = BIDSLayout(
str(cls.bids_dir),
database_path=_db_path,
reset_database=cls.bids_database_dir is None,
indexer=_indexer,
)
except:
raise ValueError(os.listdir(cls.bids_dir))
cls.bids_database_dir = _db_path
cls.layout = cls._layout
if cls.bids_filters:
Expand Down

0 comments on commit 21143de

Please sign in to comment.