Skip to content

Commit

Permalink
Update getargspec (deprecated) to inspect.signature
Browse files Browse the repository at this point in the history
  • Loading branch information
kysolvik committed Jun 7, 2024
1 parent f3b5015 commit 56047f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dabench/obsop/_obsop.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self,
self.h = self._index_state_vec
else:
# Check custom h
custom_args = inspect.getargspec(h).args
custom_args = inspect.signature.parameters
if 'state_vec' not in custom_args or 'obs_vec' not in custom_args:
raise ValueError('User-specified h does not accept the '
'required args for h: "state_vec" and '
Expand Down

0 comments on commit 56047f4

Please sign in to comment.