OpenMDAO / dymos

Open Source Optimization of Dynamic Multidisciplinary Systems
Apache License 2.0
210 stars 67 forks source link

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

Closed swryan closed 4 months ago

swryan commented 4 months 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.