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

Nightly build is failing #1981

Closed
github-actions bot opened this issue Jul 24, 2021 · 2 comments · Fixed by #1986
Closed

Nightly build is failing #1981

github-actions bot opened this issue Jul 24, 2021 · 2 comments · Fixed by #1986
Labels
Type: Maintenance Updates and clean ups (but not wrong)
Milestone

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Jul 24, 2021

The Nightly workflow is failing.

platform linux -- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
Matplotlib: 3.4.2
Freetype: 2.6.1
Dep Versions: Matplotlib 3.4.2, NumPy 1.21.1, Pandas 1.3.1, Pint 0.18.dev51+gabe3840, Pooch v1.4.0
	PyProj 3.1.0, SciPy 1.7.0, Traitlets 5.0.5, Xarray 0.19.1.dev8+gda99a566
rootdir: /home/runner/work/MetPy/MetPy, configfile: setup.cfg
plugins: mpl-0.13
collected 1145 items

tests/test_cbook.py .                                                    [  0%]
tests/test_deprecation.py .                                              [  0%]
tests/test_packaging.py .                                                [  0%]
tests/test_testing.py ....                                               [  0%]
tests/test_xarray.py ................................................... [  5%]
........................................................................ [ 11%]
........................................................................ [ 17%]
.......                                                                  [ 18%]
tests/calc/test_basic.py ............................................... [ 22%]
....................                                                     [ 24%]
tests/calc/test_calc_tools.py .......................................... [ 27%]
........................................................................ [ 34%]
..F..FF..F...                                                            [ 35%]
tests/calc/test_cross_sections.py .............                          [ 36%]
tests/calc/test_indices.py ...................                           [ 37%]
tests/calc/test_kinematics.py .......................................... [ 41%]
..............                                                           [ 42%]
tests/calc/test_thermo.py .............................................. [ 46%]
........................................................................ [ 53%]
..................................                                       [ 56%]
tests/calc/test_turbulence.py ...........................                [ 58%]
tests/interpolate/test_geometry.py .............                         [ 59%]
tests/interpolate/test_grid.py ........................                  [ 61%]
tests/interpolate/test_interpolate_tools.py .......                      [ 62%]
tests/interpolate/test_one_dimension.py .................                [ 63%]
tests/interpolate/test_points.py ...............                         [ 65%]
tests/interpolate/test_slices.py .......                                 [ 65%]
tests/io/test_gini.py ............                                       [ 66%]
tests/io/test_metar.py ...............                                   [ 68%]
tests/io/test_nexrad.py ................................................ [ 72%]
........................................................................ [ 78%]
..................................................                       [ 82%]
tests/io/test_station_data.py .                                          [ 83%]
tests/io/test_tools.py ..                                                [ 83%]
tests/plots/test_cartopy_utils.py .......                                [ 83%]
tests/plots/test_ctables.py ..........                                   [ 84%]
tests/plots/test_declarative.py ........................................ [ 88%]
............                                                             [ 89%]
tests/plots/test_mapping.py ......................                       [ 91%]
tests/plots/test_mpl.py .                                                [ 91%]
tests/plots/test_skewt.py ................................               [ 94%]
tests/plots/test_station_plot.py .........................               [ 96%]
tests/plots/test_util.py .............                                   [ 97%]
tests/plots/test_wx_symbols.py ....                                      [ 97%]
tests/units/test_units.py ..........................                     [100%]

=================================== FAILURES ===================================
_____________________ test_first_derivative_xarray_lonlat ______________________

test_da_lonlat = <xarray.DataArray 'temperature' (isobaric: 3, lat: 4, lon: 4)>
array([[[300.        , 298.93617021, 297.87234043, 296....) float64 260.0 263.3 266.7 270.0
    metpy_crs  object Projection: latitude_longitude
Attributes:
    units:    kelvin

    def test_first_derivative_xarray_lonlat(test_da_lonlat):
        """Test first derivative with an xarray.DataArray on a lonlat grid in each axis usage."""
        deriv = first_derivative(test_da_lonlat, axis='lon')  # dimension coordinate name
        deriv_alt1 = first_derivative(test_da_lonlat, axis='x')  # axis type
        deriv_alt2 = first_derivative(test_da_lonlat, axis=-1)  # axis number
    
        # Build the xarray of the desired values
>       partial = xr.DataArray(
            np.array([-3.30782978e-06, -3.42816074e-06, -3.57012948e-06, -3.73759364e-06]),
            coords=(('lat', test_da_lonlat['lat']),)
        )

tests/calc/test_calc_tools.py:1032: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/dataarray.py:410: in __init__
    coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/dataarray.py:123: in _infer_coords_and_dims
    coord = as_variable(coord, name=dims[n]).to_index_variable()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

obj = ('lat', <xarray.DataArray 'lat' (lat: 4)>
array([30.      , 33.333333, 36.666667, 40.      ])
Coordinates:
  * lat    ...py_crs  object Projection: latitude_longitude
Attributes:
    units:        degrees_north
    _metpy_axis:  y,latitude)
name = 'dim_0'

    def as_variable(obj, name=None) -> "Union[Variable, IndexVariable]":
        """Convert an object into a Variable.
    
        Parameters
        ----------
        obj : object
            Object to convert into a Variable.
    
            - If the object is already a Variable, return a shallow copy.
            - Otherwise, if the object has 'dims' and 'data' attributes, convert
              it into a new Variable.
            - If all else fails, attempt to convert the object into a Variable by
              unpacking it into the arguments for creating a new Variable.
        name : str, optional
            If provided:
    
            - `obj` can be a 1D array, which is assumed to label coordinate values
              along a dimension of this given name.
            - Variables with name matching one of their dimensions are converted
              into `IndexVariable` objects.
    
        Returns
        -------
        var : Variable
            The newly created variable.
    
        """
        from .dataarray import DataArray
    
        # TODO: consider extending this method to automatically handle Iris and
        if isinstance(obj, DataArray):
            # extract the primary Variable from DataArrays
            obj = obj.variable
    
        if isinstance(obj, Variable):
            obj = obj.copy(deep=False)
        elif isinstance(obj, tuple):
            if isinstance(obj[1], DataArray):
>               raise TypeError(
                    "Using a DataArray object to construct a variable is"
                    " ambiguous, please extract the data using the .data property."
                )
E               TypeError: Using a DataArray object to construct a variable is ambiguous, please extract the data using the .data property.

/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/variable.py:121: TypeError
------------------------------ Captured log setup ------------------------------
WARNING  metpy.xarray:xarray.py:770 Found valid latitude/longitude coordinates, assuming latitude_longitude for projection grid_mapping variable
_____________________ test_second_derivative_xarray_lonlat _____________________

test_da_lonlat = <xarray.DataArray 'temperature' (isobaric: 3, lat: 4, lon: 4)>
array([[[300.        , 298.93617021, 297.87234043, 296....) float64 260.0 263.3 266.7 270.0
    metpy_crs  object Projection: latitude_longitude
Attributes:
    units:    kelvin

    def test_second_derivative_xarray_lonlat(test_da_lonlat):
        """Test second derivative with an xarray.DataArray on a lonlat grid."""
        deriv = second_derivative(test_da_lonlat, axis='lat')
    
        # Build the xarray of the desired values
>       partial = xr.DataArray(
            np.array([1.67155420e-14, 1.67155420e-14, 1.74268211e-14, 1.74268211e-14]),
            coords=(('lat', test_da_lonlat['lat']),)
        )

tests/calc/test_calc_tools.py:1086: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/dataarray.py:410: in __init__
    coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/dataarray.py:123: in _infer_coords_and_dims
    coord = as_variable(coord, name=dims[n]).to_index_variable()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

obj = ('lat', <xarray.DataArray 'lat' (lat: 4)>
array([30.      , 33.333333, 36.666667, 40.      ])
Coordinates:
  * lat    ...py_crs  object Projection: latitude_longitude
Attributes:
    units:        degrees_north
    _metpy_axis:  y,latitude)
name = 'dim_0'

    def as_variable(obj, name=None) -> "Union[Variable, IndexVariable]":
        """Convert an object into a Variable.
    
        Parameters
        ----------
        obj : object
            Object to convert into a Variable.
    
            - If the object is already a Variable, return a shallow copy.
            - Otherwise, if the object has 'dims' and 'data' attributes, convert
              it into a new Variable.
            - If all else fails, attempt to convert the object into a Variable by
              unpacking it into the arguments for creating a new Variable.
        name : str, optional
            If provided:
    
            - `obj` can be a 1D array, which is assumed to label coordinate values
              along a dimension of this given name.
            - Variables with name matching one of their dimensions are converted
              into `IndexVariable` objects.
    
        Returns
        -------
        var : Variable
            The newly created variable.
    
        """
        from .dataarray import DataArray
    
        # TODO: consider extending this method to automatically handle Iris and
        if isinstance(obj, DataArray):
            # extract the primary Variable from DataArrays
            obj = obj.variable
    
        if isinstance(obj, Variable):
            obj = obj.copy(deep=False)
        elif isinstance(obj, tuple):
            if isinstance(obj[1], DataArray):
>               raise TypeError(
                    "Using a DataArray object to construct a variable is"
                    " ambiguous, please extract the data using the .data property."
                )
E               TypeError: Using a DataArray object to construct a variable is ambiguous, please extract the data using the .data property.

/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/variable.py:121: TypeError
------------------------------ Captured log setup ------------------------------
WARNING  metpy.xarray:xarray.py:770 Found valid latitude/longitude coordinates, assuming latitude_longitude for projection grid_mapping variable
_____________________________ test_gradient_xarray _____________________________

test_da_xy = <xarray.DataArray 'temperature' (time: 3, isobaric: 3, y: 4, x: 4)>
array([[[[300.        , 299.65034965, 299.3006993 ...  object Projection: lambert_conformal_conic
Attributes:
    units:         kelvin
    grid_mapping:  lambert_conformal

    def test_gradient_xarray(test_da_xy):
        """Test the 3D gradient calculation with a 4D DataArray in each axis usage."""
        deriv_x, deriv_y, deriv_p = gradient(test_da_xy, axes=('x', 'y', 'isobaric'))
        deriv_x_alt1, deriv_y_alt1, deriv_p_alt1 = gradient(test_da_xy,
                                                            axes=('x', 'y', 'vertical'))
        deriv_x_alt2, deriv_y_alt2, deriv_p_alt2 = gradient(test_da_xy, axes=(3, 2, 1))
    
        truth_x = xr.full_like(test_da_xy, -6.993007e-07)
        truth_x.attrs['units'] = 'kelvin / meter'
        truth_x = truth_x.metpy.quantify()
    
        truth_y = xr.full_like(test_da_xy, -2.797203e-06)
        truth_y.attrs['units'] = 'kelvin / meter'
        truth_y = truth_y.metpy.quantify()
    
>       partial = xr.DataArray(
            np.array([0.04129204, 0.03330003, 0.02264402]),
            coords=(('isobaric', test_da_xy['isobaric']),)
        )

tests/calc/test_calc_tools.py:1114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/dataarray.py:410: in __init__
    coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/dataarray.py:123: in _infer_coords_and_dims
    coord = as_variable(coord, name=dims[n]).to_index_variable()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

obj = ('isobaric', <xarray.DataArray 'isobaric' (isobaric: 3)>
array([850., 700., 500.])
Coordinates:
  * isobaric   (isobar...    metpy_crs  object Projection: lambert_conformal_conic
Attributes:
    units:        hPa
    _metpy_axis:  vertical)
name = 'dim_0'

    def as_variable(obj, name=None) -> "Union[Variable, IndexVariable]":
        """Convert an object into a Variable.
    
        Parameters
        ----------
        obj : object
            Object to convert into a Variable.
    
            - If the object is already a Variable, return a shallow copy.
            - Otherwise, if the object has 'dims' and 'data' attributes, convert
              it into a new Variable.
            - If all else fails, attempt to convert the object into a Variable by
              unpacking it into the arguments for creating a new Variable.
        name : str, optional
            If provided:
    
            - `obj` can be a 1D array, which is assumed to label coordinate values
              along a dimension of this given name.
            - Variables with name matching one of their dimensions are converted
              into `IndexVariable` objects.
    
        Returns
        -------
        var : Variable
            The newly created variable.
    
        """
        from .dataarray import DataArray
    
        # TODO: consider extending this method to automatically handle Iris and
        if isinstance(obj, DataArray):
            # extract the primary Variable from DataArrays
            obj = obj.variable
    
        if isinstance(obj, Variable):
            obj = obj.copy(deep=False)
        elif isinstance(obj, tuple):
            if isinstance(obj[1], DataArray):
>               raise TypeError(
                    "Using a DataArray object to construct a variable is"
                    " ambiguous, please extract the data using the .data property."
                )
E               TypeError: Using a DataArray object to construct a variable is ambiguous, please extract the data using the .data property.

/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/variable.py:121: TypeError
_________________________ test_laplacian_xarray_lonlat _________________________

test_da_lonlat = <xarray.DataArray 'temperature' (isobaric: 3, lat: 4, lon: 4)>
array([[[300.        , 298.93617021, 297.87234043, 296....) float64 260.0 263.3 266.7 270.0
    metpy_crs  object Projection: latitude_longitude
Attributes:
    units:    kelvin

    def test_laplacian_xarray_lonlat(test_da_lonlat):
        """Test laplacian with an xarray.DataArray on a lonlat grid."""
        laplac = laplacian(test_da_lonlat, axes=('lat', 'lon'))
    
        # Build the xarray of the desired values
>       partial = xr.DataArray(
            np.array([1.67155420e-14, 1.67155420e-14, 1.74268211e-14, 1.74268211e-14]),
            coords=(('lat', test_da_lonlat['lat']),)
        )

tests/calc/test_calc_tools.py:1198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/dataarray.py:410: in __init__
    coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/dataarray.py:123: in _infer_coords_and_dims
    coord = as_variable(coord, name=dims[n]).to_index_variable()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

obj = ('lat', <xarray.DataArray 'lat' (lat: 4)>
array([30.      , 33.333333, 36.666667, 40.      ])
Coordinates:
  * lat    ...py_crs  object Projection: latitude_longitude
Attributes:
    units:        degrees_north
    _metpy_axis:  y,latitude)
name = 'dim_0'

    def as_variable(obj, name=None) -> "Union[Variable, IndexVariable]":
        """Convert an object into a Variable.
    
        Parameters
        ----------
        obj : object
            Object to convert into a Variable.
    
            - If the object is already a Variable, return a shallow copy.
            - Otherwise, if the object has 'dims' and 'data' attributes, convert
              it into a new Variable.
            - If all else fails, attempt to convert the object into a Variable by
              unpacking it into the arguments for creating a new Variable.
        name : str, optional
            If provided:
    
            - `obj` can be a 1D array, which is assumed to label coordinate values
              along a dimension of this given name.
            - Variables with name matching one of their dimensions are converted
              into `IndexVariable` objects.
    
        Returns
        -------
        var : Variable
            The newly created variable.
    
        """
        from .dataarray import DataArray
    
        # TODO: consider extending this method to automatically handle Iris and
        if isinstance(obj, DataArray):
            # extract the primary Variable from DataArrays
            obj = obj.variable
    
        if isinstance(obj, Variable):
            obj = obj.copy(deep=False)
        elif isinstance(obj, tuple):
            if isinstance(obj[1], DataArray):
>               raise TypeError(
                    "Using a DataArray object to construct a variable is"
                    " ambiguous, please extract the data using the .data property."
                )
E               TypeError: Using a DataArray object to construct a variable is ambiguous, please extract the data using the .data property.

/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/variable.py:121: TypeError
------------------------------ Captured log setup ------------------------------
WARNING  metpy.xarray:xarray.py:770 Found valid latitude/longitude coordinates, assuming latitude_longitude for projection grid_mapping variable
=============================== warnings summary ===============================
tests/test_xarray.py::test_quantify
tests/test_xarray.py::test_dataset_quantify
tests/calc/test_calc_tools.py::test_parse_angle_invalid_arr
tests/calc/test_calc_tools.py::test_gradient_2d
tests/calc/test_calc_tools.py::test_gradient_4d
tests/calc/test_calc_tools.py::test_gradient_restricted_axes
tests/calc/test_calc_tools.py::test_3d_gradient_3d_data_no_axes
tests/calc/test_calc_tools.py::test_2d_gradient_4d_data_2_axes_3_deltas
tests/calc/test_calc_tools.py::test_2d_gradient_4d_data_2_axes_2_deltas
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/numpy/testing/_private/utils.py:706: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    x = np.asanyarray(x)

tests/test_xarray.py::test_quantify
tests/test_xarray.py::test_dataset_quantify
tests/calc/test_calc_tools.py::test_find_intersections[all-expected0]
tests/calc/test_calc_tools.py::test_find_intersections[increasing-expected1]
tests/calc/test_calc_tools.py::test_find_intersections[decreasing-expected2]
tests/calc/test_calc_tools.py::test_find_intersections_no_intersections
tests/calc/test_calc_tools.py::test_find_intersections_intersections_in_data_at_ends[all-expected0]
tests/calc/test_calc_tools.py::test_find_intersections_intersections_in_data_at_ends[increasing-expected1]
tests/calc/test_calc_tools.py::test_find_intersections_intersections_in_data_at_ends[decreasing-expected2]
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/numpy/testing/_private/utils.py:707: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    y = np.asanyarray(y)

tests/test_xarray.py: 1 warning
tests/calc/test_cross_sections.py: 8 warnings
tests/plots/test_declarative.py: 2 warnings
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/variable.py:259: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    data = np.asarray(data)

tests/test_xarray.py::test_preprocess_and_wrap_with_variable
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/metpy/xarray.py:1192: UserWarning: Argument b given as xarray Variable...casting to its data. xarray DataArrays are recommended instead.
    warnings.warn(

tests/test_xarray.py::test_preprocess_and_wrap_with_variable
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/metpy/xarray.py:1192: UserWarning: Argument a given as xarray Variable...casting to its data. xarray DataArrays are recommended instead.
    warnings.warn(

tests/calc/test_basic.py: 12 warnings
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/numpy/ma/core.py:2829: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    _data = np.array(data, dtype=dtype, copy=copy,

tests/calc/test_basic.py::test_apparent_temperature_scalar
tests/calc/test_basic.py::test_apparent_temperature_windchill
tests/calc/test_thermo.py::test_saturation_equivalent_potential_temperature_masked
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/numpy/ma/core.py:711: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    data = np.array(a, copy=False, subok=subok)

tests/calc/test_calc_tools.py::test_find_intersections[all-expected0]
tests/calc/test_calc_tools.py::test_find_intersections[increasing-expected1]
tests/calc/test_calc_tools.py::test_find_intersections[decreasing-expected2]
tests/calc/test_calc_tools.py::test_find_intersections_no_intersections
tests/calc/test_calc_tools.py::test_find_intersections_intersections_in_data_at_ends[all-expected0]
tests/calc/test_calc_tools.py::test_find_intersections_intersections_in_data_at_ends[increasing-expected1]
tests/calc/test_calc_tools.py::test_find_intersections_intersections_in_data_at_ends[decreasing-expected2]
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/metpy/testing.py:156: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    desired_mask = getattr(desired, 'mask', np.full(np.asarray(desired).shape, False))

tests/calc/test_calc_tools.py::test_parse_angle_abbrieviated
tests/calc/test_calc_tools.py::test_parse_angle_ext
tests/calc/test_calc_tools.py::test_parse_angle_mix_multiple
tests/calc/test_calc_tools.py::test_parse_angle_mix_multiple_arr
tests/calc/test_calc_tools.py::test_parse_angles_array
tests/calc/test_calc_tools.py::test_parse_angles_series
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/pint/compat.py:55: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    return np.asarray(value)

tests/calc/test_calc_tools.py::test_parse_angle_invalid_arr
tests/calc/test_calc_tools.py::test_gradient_2d
tests/calc/test_calc_tools.py::test_gradient_4d
tests/calc/test_calc_tools.py::test_gradient_restricted_axes
tests/calc/test_calc_tools.py::test_3d_gradient_3d_data_no_axes
tests/calc/test_calc_tools.py::test_2d_gradient_4d_data_2_axes_3_deltas
tests/calc/test_calc_tools.py::test_2d_gradient_4d_data_2_axes_2_deltas
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/metpy/testing.py:155: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    actual_mask = getattr(actual, 'mask', np.full(np.asarray(actual).shape, False))

tests/calc/test_calc_tools.py: 11 warnings
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/pint/quantity.py:1842: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    self._magnitude[key] = value

tests/calc/test_cross_sections.py: 14 warnings
tests/interpolate/test_slices.py: 2 warnings
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/scipy/interpolate/interpolate.py:2546: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    values += np.asarray(self.values[edge_indices]) * weight[vslice]

tests/calc/test_indices.py::test_precipitable_water_xarray
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/xarray/core/utils.py:118: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    index = pd.Index(np.asarray(array), **kwargs)

tests/calc/test_kinematics.py::test_advection_xarray
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/metpy/xarray.py:1471: UserWarning: Vertical dimension number not found. Defaulting to (..., Z, Y, X) order.
    warnings.warn(

tests/plots/test_declarative.py::test_declarative_image
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/110m/physical/ne_110m_coastline.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_declarative_contour
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_boundary_lines_land.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_declarative_contour_cam
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/50m/physical/ne_50m_land.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_declarative_contour_cam
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/50m/physical/ne_50m_coastline.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_declarative_contour_cam
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/50m/cultural/ne_50m_admin_0_boundary_lines_land.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_declarative_contour_cam
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/50m/cultural/ne_50m_admin_1_states_provinces_lakes.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_declarative_events
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_1_states_provinces_lakes.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_projection_object
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/50m/physical/ne_50m_lakes.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_plotobs_units_with_formatter
  /home/runner/work/MetPy/MetPy/tests/plots/test_declarative.py:771: UserWarning: Pandas doesn't allow columns to be created via a new attribute name - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access
    df.units = {'alti': 'inHg'}

tests/plots/test_declarative.py::test_declarative_sfc_obs
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/10m/cultural/ne_10m_admin_1_states_provinces_lakes.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_declarative_sfc_obs_full
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/10m/physical/ne_10m_coastline.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_declarative_sfc_obs_full
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/cartopy/io/__init__.py:241: DownloadWarning: Downloading: https://naciscdn.org/naturalearth/10m/cultural/ne_10m_admin_0_boundary_lines_land.zip
    warnings.warn('Downloading: {}'.format(url), DownloadWarning)

tests/plots/test_declarative.py::test_declarative_upa_obs_convert_barb_units
tests/plots/test_station_plot.py::test_barb_projection_list
tests/plots/test_station_plot.py::test_arrow_projection_list
tests/plots/test_station_plot.py::test_barb_unit_conversion
tests/plots/test_station_plot.py::test_arrow_unit_conversion
tests/plots/test_station_plot.py::test_barb_no_default_unit_conversion
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/metpy/plots/station_plot.py:340: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    u = np.array(u)

tests/plots/test_declarative.py::test_declarative_upa_obs_convert_barb_units
tests/plots/test_station_plot.py::test_barb_projection_list
tests/plots/test_station_plot.py::test_arrow_projection_list
tests/plots/test_station_plot.py::test_barb_unit_conversion
tests/plots/test_station_plot.py::test_arrow_unit_conversion
tests/plots/test_station_plot.py::test_barb_no_default_unit_conversion
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/metpy/plots/station_plot.py:341: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    v = np.array(v)

tests/plots/test_skewt.py::test_skewt_api_units
tests/plots/test_skewt.py::test_skewt_barb_unit_conversion
tests/plots/test_skewt.py::test_skewt_barb_no_default_unit_conversion
  /opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/numpy/ma/core.py:2361: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    a = np.array(a, copy=copy, subok=True)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED tests/calc/test_calc_tools.py::test_first_derivative_xarray_lonlat - T...
FAILED tests/calc/test_calc_tools.py::test_second_derivative_xarray_lonlat - ...
FAILED tests/calc/test_calc_tools.py::test_gradient_xarray - TypeError: Using...
FAILED tests/calc/test_calc_tools.py::test_laplacian_xarray_lonlat - TypeErro...
=========== 4 failed, 1141 passed, 122 warnings in 218.22s (0:03:38) ===========
@github-actions github-actions bot added the Type: Maintenance Updates and clean ups (but not wrong) label Jul 24, 2021
@dopplershift
Copy link
Member

@jthielen any thoughts?

@jthielen
Copy link
Collaborator

It looks like our specification of coordinates as a tuple of name, data_array tuples was indirectly deprecated. Changing it to actual dicts makes it go through the proper path in _infer_coords_and_dims (where the DataArray is converted into a variable), as I've done in #1986.

@dopplershift dopplershift added this to the 1.1.0 milestone Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintenance Updates and clean ups (but not wrong)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants