Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Fix python 3.11 compatibility issue (#4)
Browse files Browse the repository at this point in the history
Grab python 3.11 compatibility issue fix from:
pykalman#101
  • Loading branch information
mbalatsko committed Sep 19, 2023
2 parents 5d72ec7 + 32a64f9 commit e223cba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pykalman/tests/test_unscented.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ def check_dims(n_dim_state, n_dim_obs, n_func_args, kf_cls, kwargs):
if not 'transition_functions' in kwargs
else (len(kwargs['transition_functions']),)
)
assert all([len(inspect.getargspec(f).args) == n_func_args
assert all([len(inspect.getfullargspec(f).args) == n_func_args
for f in transition_functions])
assert transition_covariance.shape == (n_dim_state, n_dim_state)
assert (
observation_functions.shape == (1,)
if not 'observation_functions' in kwargs
else (len(kwargs['observation_functions']),)
)
assert all([len(inspect.getargspec(f).args) == n_func_args
assert all([len(inspect.getfullargspec(f).args) == n_func_args
for f in observation_functions])
assert observation_covariance.shape == (n_dim_obs, n_dim_obs)
assert initial_state_mean.shape == (n_dim_state,)
Expand Down
2 changes: 1 addition & 1 deletion pykalman/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_params(obj):
'''Get names and values of all parameters in `obj`'s __init__'''
try:
# get names of every variable in the argument
args = inspect.getargspec(obj.__init__)[0]
args = inspect.getfullargspec(obj.__init__)[0]
args.pop(0) # remove "self"

# get values for each of the above in the object
Expand Down

0 comments on commit e223cba

Please sign in to comment.