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

Use numpy.can_cast instead of casting and checking #7834

Closed
wants to merge 3 commits into from

Commits on May 11, 2023

  1. Use numpy.can_cast instead of casting and checking

    In numpy >= 1.24 unsafe casting raises a RuntimeWarning for an operation
    that xarray does often to check if casting is safe. `numpy.can_cast`
    looks like an alternative approach designed for this exact case.
    mx-moth committed May 11, 2023
    Configuration menu
    Copy the full SHA
    47a632a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    915a215 View commit details
    Browse the repository at this point in the history
  3. Add note to whats-new.rst

    mx-moth committed May 11, 2023
    Configuration menu
    Copy the full SHA
    452156f View commit details
    Browse the repository at this point in the history