Skip to content

doctest failure with numpy 1.20 #4858

Closed
@mathause

Description

@mathause

What happened:

Our doctests fail since numpy 1.20 came out:

https://github.com/pydata/xarray/pull/4760/checks?check_run_id=1818512841#step:8:69

What you expected to happen:

They don't ;-)

Minimal Complete Verifiable Example:

The following fails with numpy 1.20 while it converted np.NaN to an integer before (xarray.DataArray.pad at the bottom)

import numpy as np

x = np.arange(10)
x = np.pad(x, 1, "constant", constant_values=np.nan)

requires numpy 1.20

Anything else we need to know?:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions