Skip to content

Commit

Permalink
fixed up scan dir bug with hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed May 2, 2024
1 parent de7738b commit 4d4ab8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xnat_ingest/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def load(
for scan_dir in session_dir.iterdir():
if not scan_dir.is_dir():
continue
scan_id, scan_type = scan_dir.name.split("-")
scan_id, scan_type = scan_dir.name.split("-", 1)
scan_resources = {}
for resource_dir in scan_dir.iterdir():
scan_resources[resource_dir.name] = FileSet(resource_dir.iterdir())
Expand Down

0 comments on commit 4d4ab8a

Please sign in to comment.