Skip to content

Commit

Permalink
bug fix in get_ops
Browse files Browse the repository at this point in the history
  • Loading branch information
mcencini committed Oct 31, 2024
1 parent 3273409 commit 06c596e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pulserver/_opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pypulseq as pp


def get_opts(input: str | dict | None = None) -> pp.Opts:
def get_opts(input: str | dict | pp.opts.Opts | None = None) -> pp.Opts:
"""
Initialize system hardware specifications structure.
Expand Down Expand Up @@ -62,6 +62,9 @@ def get_opts(input: str | dict | None = None) -> pp.Opts:
if input is None:
return pp.Opts.default

if isinstance(input, pp.opts.Opts):
return input

# split
if isinstance(input, str):
# get vendor, field strength and model ID
Expand Down

0 comments on commit 06c596e

Please sign in to comment.