Skip to content

Commit 6c53acc

Browse files
committed
FIX: Ensure NoneType session id when missing
1 parent bb31798 commit 6c53acc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nibabies/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,12 @@ class execution(_Config):
454454
@classmethod
455455
def init(cls):
456456
"""Create a new BIDS Layout accessible with :attr:`~execution.layout`."""
457+
# Convert string literal None to NoneType
458+
if cls.unique_labels:
459+
cls.unique_labels = [
460+
[sub, ses] if ses != 'None' else [sub, None] for sub, ses in cls.unique_labels
461+
]
462+
457463
if cls.fs_license_file and Path(cls.fs_license_file).is_file():
458464
os.environ["FS_LICENSE"] = str(cls.fs_license_file)
459465

0 commit comments

Comments
 (0)