tidy3d icon indicating copy to clipboard operation
tidy3d copied to clipboard

Sort out `numpy` 2.0 release

Open tylerflex opened this issue 1 year ago • 0 comments

Numpy version is currently not specified in our pyproject.toml. So the version will be largely determined by our dependencies. Maybe a few potential pitfalls:

  1. One of our dependencies wants numpy 2 and the other only works with numpy 1. In this case, I assume poetry / pip will just resolve this and install the lower versions such that numpy 1 versions are installed?
  2. User upgrades to numpy 2 and some of our internal numpy code breaks?

I assume we really only need to worry about 2. There are some articles about upgrading https://numpy.org/devdocs/numpy_2_0_migration_guide.html https://pythonspeed.com/articles/numpy-2/#:~:text=NumPy%202%20is%20a%20new,might%20be%20required%20to%20upgrade.

We can go through and see if anything needs to get updated.

tylerflex avatar Mar 21 '24 21:03 tylerflex