Skip to content

Commit

Permalink
fix read_dataset wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
matsvanes committed Sep 20, 2024
1 parent 38d7591 commit 3fb27b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osl/preprocessing/osl_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def run_osl_read_dataset(dataset, userargs):
logger.info("OSL Stage - {0}".format( "read_dataset"))
logger.info("userargs: {0}".format(str(userargs)))
ftype = userargs.pop("ftype", None)
extra_keys = userargs.pop("extra_keys", []).split(" ")
extra_keys = userargs.pop("extra_keys", [])

fif = dataset['raw'].filenames[0]

Expand Down Expand Up @@ -706,6 +706,7 @@ def run_osl_read_dataset(dataset, userargs):
dataset['epochs'] = epochs

if len(extra_keys)>0:
extra_keys = extra_keys.split(" ")
for key in extra_keys:
extra_file = Path(fif.replace(ftype, key))
key = key.split(".")[0]
Expand Down

0 comments on commit 3fb27b9

Please sign in to comment.