Skip to content

Commit 060356a

Browse files
committed
Remove old code
1 parent 680718e commit 060356a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drone_models/core.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def parametrize(
7777
"""
7878
try:
7979
xp = np if xp is None else xp
80-
# physics = Path(sys.modules[fn.__module__].__file__).parent.name
8180
physics = fn.__module__.split(".")[-2]
8281
sig = inspect.signature(fn)
8382
kwonly_params = [
@@ -86,10 +85,7 @@ def parametrize(
8685
if param.kind == inspect.Parameter.KEYWORD_ONLY
8786
]
8887
params = load_params(physics, drone_model)
89-
9088
params = {k: xp.asarray(v, device=device) for k, v in params.items() if k in kwonly_params}
91-
# if xp is not None: # Convert to any array API framework
92-
# params = named_tuple2xp(params, xp=xp, device=device)
9389
except KeyError as e:
9490
raise KeyError(
9591
f"Model `{physics}` does not exist in the parameter registry for drone `{drone_model}`"

0 commit comments

Comments
 (0)