OpenMDAO / dymos

Open Source Optimization of Dynamic Multidisciplinary Systems
Apache License 2.0
195 stars 64 forks source link

The `in1d` function has been deprecated for NumPy 2.0. Replace with `isin`. #1080

Closed swryan closed 3 weeks ago

swryan commented 3 weeks ago

Task Description

Per the NumPy 2.0 Migration Guide and NumPy 2.0.0 Release Notes:

np.in1d has been deprecated. Use np.isin instead.

There are multiple occurrences of np.in1d in Dymos that are being flagged by the NumPy 2.0 compatibility check.