Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpy 2 compatibility #3491

Merged
merged 5 commits into from
May 10, 2024
Merged

Numpy 2 compatibility #3491

merged 5 commits into from
May 10, 2024

Commits on Apr 26, 2024

  1. MNT: Update use of trapz for numpy>=2

    This has been renamed to `trapezoid`, so do a conditional import to
    avoid a warning. This can be cleaned up in a couple years.
    dopplershift committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    1a9ba14 View commit details
    Browse the repository at this point in the history
  2. MNT: Update normalize_axis_index for numpy>=2

    This has been moved from the (now) deprecated numeric namespace to an
    array_utils namespace. Apparently this wasn't a public API before (?)
    but now is.
    dopplershift committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    37be3c3 View commit details
    Browse the repository at this point in the history
  3. BUG: Fix version parsing for RC's, etc.

    We were a bit too stringent here, since versions can include alpha/beta
    as well as post versions. This was broken when numpy 2.0.0rc1 was
    installed.
    dopplershift committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    11f952f View commit details
    Browse the repository at this point in the history
  4. MNT: Fix location of broadcast_to()

    This symbol is available at the top level of the module, so just use it
    there--just like the rest of the uses of this function in metpy. The full
    path here no longer works with numpy>=2.
    dopplershift committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    b94ac53 View commit details
    Browse the repository at this point in the history
  5. BUG: Fix kwarg in test

    This was causing a conflict between linewidth and linewidths that
    matplotlib 3.9.0rc2 caught and errored out on.
    dopplershift committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    941109a View commit details
    Browse the repository at this point in the history