QuantEcon / QuantEcon.py

A community based Python library for quantitative economics
https://quantecon.org/quantecon-py/
MIT License
1.89k stars 2.25k forks source link

Fix deprecation warnings coming from `np.asarray` #726

Open kp992 opened 4 months ago

kp992 commented 4 months ago

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

coveralls commented 4 months ago

Coverage Status

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

oyamad commented 4 months ago

@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 https://github.com/QuantEcon/QuantEcon.py/blob/d7c2f5261301ff159c32dd79300e500a442856bc/quantecon/markov/tests/test_core.py#L587-L590 and here https://github.com/QuantEcon/QuantEcon.py/blob/d7c2f5261301ff159c32dd79300e500a442856bc/quantecon/tests/test_graph_tools.py#L291-L294