Skip to content

Commit

Permalink
Add BIDS loading option to transform_to_physio task
Browse files Browse the repository at this point in the history
  • Loading branch information
maestroque committed Aug 25, 2024
1 parent 9c224f0 commit 05d90ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions physutils/tasks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pydra

from physutils.io import load_history, load_physio
from physutils.io import load_from_bids, load_history, load_physio
from physutils.physio import Physio


Expand All @@ -11,8 +11,7 @@ def transform_to_physio(input_file: str, mode="physio") -> Physio:
elif mode == "history":
physio_obj = load_history(input_file)
elif mode == "bids":
# TODO: Implement BIDS loading once the bids-support branch is merged
raise NotImplementedError("BIDS loading is not yet implemented")
physio_obj = load_from_bids(input_file)
else:
raise ValueError(f"Invalid transform_to_physio mode: {mode}")
return physio_obj

0 comments on commit 05d90ea

Please sign in to comment.