JohannesBuchner / nway

nway -- Bayesian cross-matching of astronomical catalogues
Other
56 stars 14 forks source link

Module 'Numpy' has no attribute 'product' #24

Open b291c571 opened 4 months ago

b291c571 commented 4 months ago

I am not sure if this is related to the current version of nway, but every time I run nway to match two catalogues, I am given the error message Module 'Numpy' has no attribute 'product'. Everything I have looked up thus far suggests an issue with the Numpy version that nway runs with. I currently have Numpy Version 2.0.0 installed on my computer.

Is this something that is happening with others as well, and if so how does the issue get resolved? Do I need to downgrade my numpy so that it is compatible with the demands of using Nway?

JohannesBuchner commented 4 months ago

Numpy 2.0.0 is very new, and has many breaking changes. Few libraries support it. You may need to downgrade to <2.

JohannesBuchner commented 4 months ago

probably we have to look at https://numpy.org/doc/stable//numpy_2_0_migration_guide.html and fix some calls, for example np.product is now only available as np.prod.