qpv-research-group / rayflare

Open-source, integrated optical modelling of complex stacks
Other
33 stars 12 forks source link

Issue with numpy version during installation #40

Closed phoebe-p closed 2 years ago

phoebe-p commented 2 years ago

Describe the bug The current most up-to-date version of numpy is 1.22.1. However, numba (which is a requirement of rayflare through the sparse package) requires numpy>=1.18,<1.22. This can cause an issue if numpy is installed first and used to compile S4, because the numpy version used in the Python session must be the same as the numpy version used during S4 compilation. Thus an error occurs if the following happens:

Environment (please complete the following information):

Solution: Installing numba first will automatically cause the right version of numpy to be installed.