From 56047f48763db18ae5a6568c484dbc7ee26b88a8 Mon Sep 17 00:00:00 2001 From: Kylen Solvik Date: Fri, 7 Jun 2024 17:46:45 -0600 Subject: [PATCH] Update getargspec (deprecated) to inspect.signature --- dabench/obsop/_obsop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabench/obsop/_obsop.py b/dabench/obsop/_obsop.py index ad3bf90..447561c 100644 --- a/dabench/obsop/_obsop.py +++ b/dabench/obsop/_obsop.py @@ -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 '