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

Fix python 3.11 compatibility issue #4

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading