Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kp992 committed Mar 7, 2024
1 parent d1e4d22 commit dc7e6cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quantecon/_graph_tools.py
Expand Up @@ -137,7 +137,7 @@ def node_labels(self, values):
if values is None:
self._node_labels = None
else:
values = np.asarray(values)
values = np.asanyarray(values)
if (values.ndim < 1) or (values.shape[0] != self.n):
raise ValueError(
'node_labels must be an array_like of length n'
Expand Down
2 changes: 1 addition & 1 deletion quantecon/markov/core.py
Expand Up @@ -227,7 +227,7 @@ def state_values(self, values):
if values is None:
self._state_values = None
else:
values = np.asarray(values)
values = np.asanyarray(values)
if (values.ndim < 1) or (values.shape[0] != self.n):
raise ValueError(
'state_values must be an array_like of length n'
Expand Down

0 comments on commit dc7e6cd

Please sign in to comment.