Skip to content

Commit 06c596e

Browse files
committed
bug fix in get_ops
1 parent 3273409 commit 06c596e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pulserver/_opts.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pypulseq as pp
66

77

8-
def get_opts(input: str | dict | None = None) -> pp.Opts:
8+
def get_opts(input: str | dict | pp.opts.Opts | None = None) -> pp.Opts:
99
"""
1010
Initialize system hardware specifications structure.
1111
@@ -62,6 +62,9 @@ def get_opts(input: str | dict | None = None) -> pp.Opts:
6262
if input is None:
6363
return pp.Opts.default
6464

65+
if isinstance(input, pp.opts.Opts):
66+
return input
67+
6568
# split
6669
if isinstance(input, str):
6770
# get vendor, field strength and model ID

0 commit comments

Comments
 (0)