manoharan-lab / holopy

Hologram processing and light scattering in python
GNU General Public License v3.0
131 stars 50 forks source link

changes for python 3.9, numpy 1.20 #435

Closed vnmanoharan closed 6 months ago

vnmanoharan commented 7 months ago

This PR contains some small fixes to allow HoloPy to work with python 3.9 and numpy 1.20.3. Later versions of python will not work with numpy 1.20, and later versions of numpy have changed argument parsing for ufuncs, so that some of the current code (see this test) for applying ufuncs to Prior objects will break. To avoid breaking current code when v3.6.0 of HoloPy is released, we should target python 3.9 and numpy 1.20.3 and no later versions.

vnmanoharan commented 6 months ago

Do you have a Mac with an M1/M2/M3 chip? If so, can you try uncommenting the - compilers line in the environment.yml file, updating the environment, and then running again?