We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3273409 commit 06c596eCopy full SHA for 06c596e
src/pulserver/_opts.py
@@ -5,7 +5,7 @@
5
import pypulseq as pp
6
7
8
-def get_opts(input: str | dict | None = None) -> pp.Opts:
+def get_opts(input: str | dict | pp.opts.Opts | None = None) -> pp.Opts:
9
"""
10
Initialize system hardware specifications structure.
11
@@ -62,6 +62,9 @@ def get_opts(input: str | dict | None = None) -> pp.Opts:
62
if input is None:
63
return pp.Opts.default
64
65
+ if isinstance(input, pp.opts.Opts):
66
+ return input
67
+
68
# split
69
if isinstance(input, str):
70
# get vendor, field strength and model ID
0 commit comments