Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings coming from np.asarray #726

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kp992
Copy link
Contributor

@kp992 kp992 commented Mar 7, 2024

Fix deprecation warnings coming from np.asarray.
Related to #723

@coveralls
Copy link

Coverage Status

coverage: 93.032%. remained the same
when pulling dc7e6cd on kp992:i723
into d7c2f52 on QuantEcon:main.

@oyamad
Copy link
Member

oyamad commented Mar 7, 2024

@kp992 Thanks, but this doesn't fix the issue: https://github.com/QuantEcon/QuantEcon.py/actions/runs/8183575000/job/22376624643?pr=726#step:8:76

As the message says, create an ndarray with dtype=object here

def test_raises_non_homogeneous_state_values():
P = [[0.4, 0.6], [0.2, 0.8]]
state_values = [(0, 1), 2]
assert_raises(ValueError, MarkovChain, P, state_values=state_values)
and here
def test_raises_non_homogeneous_node_labels():
adj_matrix = [[1, 0], [0, 1]]
node_labels = [(0, 1), 2]
assert_raises(ValueError, DiGraph, adj_matrix, node_labels=node_labels)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants