tandermann / iucnsim

iucnsim R-package
GNU General Public License v3.0
6 stars 0 forks source link

Error using estimate_transition_rates() with numpy 1.24.3 #5

Open 03rcooke opened 1 year ago

03rcooke commented 1 year ago

Error produced when running estimate_transition_rates(). Only occurs when using AVES_iucn_history.txt, rather than MAMMALIA_iucn_history.txt.

"Error: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (10925,) + inhomogeneous part."

Looks like it is a problem in newer versions of numpy, see here https://stackoverflow.com/questions/67183501/setting-an-array-element-with-a-sequence-requested-array-has-an-inhomogeneous-sh

03rcooke commented 1 year ago

I replaced numpy 1.24.3 with numpy 1.21.2 and it worked