#2395 closed task (fixed)

python3-xarray QA

Reported by: darkblueb Owned by: osgeolive@…
Priority: major Milestone: OSGeoLive16.0
Component: OSGeoLive Keywords: python
Cc: osgeolive@…

Description

ol15 build 197 python3-xarray source tree

user@osgeolive:~/python-xarray-0.21.1/xarray/tests$ pytest-3 test_*
============================== test session starts ===============================
platform linux -- Python 3.10.4, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
rootdir: /home/user/python-xarray-0.21.1, configfile: setup.cfg
plugins: flaky-3.7.0, bdd-3.2.1, django-3.5.1
collected 12788 items / 3 skipped / 12785 selected                               

test_accessor_dt.py ...................................................... [  0%]
    ....
./../../../../usr/lib/python3/dist-packages/seaborn/rcmod.py:4
  /usr/lib/python3/dist-packages/seaborn/rcmod.py:4: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import LooseVersion

../../../../../usr/lib/python3/dist-packages/ipywidgets/widgets/widget_link.py:19
../../../../../usr/lib/python3/dist-packages/ipywidgets/widgets/widget_link.py:19
  /usr/lib/python3/dist-packages/ipywidgets/widgets/widget_link.py:19: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`) Passing types is deprecated in traitlets 4.1.
    super(WidgetTraitTuple, self).__init__(Instance(Widget), Unicode, **kwargs)

xarray/tests/test_accessor_dt.py::test_calendar_dask
  /usr/lib/python3/dist-packages/dask/array/random.py:461: DeprecationWarning: This function is deprecated. Please call randint(1, 1000000 + 1) instead
    return func(*args, size=size, **kwargs)

xarray/tests/test_accessor_dt.py: 7 warnings
xarray/tests/test_cftime_offsets.py: 5 warnings
xarray/tests/test_cftimeindex.py: 64 warnings
xarray/tests/test_cftimeindex_resample.py: 488 warnings
xarray/tests/test_missing.py: 2 warnings
  /home/user/python-xarray-0.21.1/xarray/coding/times.py:351: FutureWarning: Index.ravel returning ndarray is deprecated; in a future version this will return a view on self.
    sample = dates.ravel()[0]

xarray/tests/test_backends.py::TestNetCDF4Data::test_zero_dimensional_variable
  /home/user/python-xarray-0.21.1/xarray/backends/plugins.py:105: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
    entrypoints = entry_points().get("xarray.backends", ())

xarray/tests/test_backends.py::TestNetCDF4Data::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestNetCDF4ViaDaskData::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestScipyInMemoryData::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestScipyFileObject::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestScipyFilePath::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestNetCDF3ViaNetCDF4Data::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestNetCDF4ClassicViaNetCDF4Data::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestGenericNetCDFData::test_roundtrip_cftime_datetime_data
xarray/tests/test_conventions.py::TestCFEncodedDataStore::test_roundtrip_cftime_datetime_data
  /home/user/python-xarray-0.21.1/xarray/coding/times.py:673: SerializationWarning: Unable to decode time axis into full numpy.datetime64 objects, continuing using cftime.datetime objects instead, reason: dates out of range
    dtype = _decode_cf_datetime_dtype(data, units, calendar, self.use_cftime)

xarray/tests/test_backends.py::TestNetCDF4Data::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestNetCDF4ViaDaskData::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestScipyInMemoryData::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestScipyFileObject::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestScipyFilePath::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestNetCDF3ViaNetCDF4Data::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestNetCDF4ClassicViaNetCDF4Data::test_roundtrip_cftime_datetime_data
xarray/tests/test_backends.py::TestGenericNetCDFData::test_roundtrip_cftime_datetime_data
xarray/tests/test_conventions.py::TestCFEncodedDataStore::test_roundtrip_cftime_datetime_data
  /home/user/python-xarray-0.21.1/xarray/core/indexing.py:423: SerializationWarning: Unable to decode time axis into full numpy.datetime64 objects, continuing using cftime.datetime objects instead, reason: dates out of range
    return np.asarray(array[self.key], dtype=None)

xarray/tests/test_backends.py::TestRasterio::test_rasterio_vrt_with_transform_and_size
  /home/user/python-xarray-0.21.1/xarray/tests/test_backends.py:4730: DeprecationWarning: open_rasterio is Deprecated in favor of rioxarray. For information about transitioning, see: https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html
    with xr.open_rasterio(vrt) as da:

xarray/tests/test_computation.py: 24 warnings
  /usr/lib/python3/dist-packages/numpy/lib/nanfunctions.py:1670: RuntimeWarning: Degrees of freedom <= 0 for slice.
    var = nanvar(a, axis=axis, dtype=dtype, out=out, ddof=ddof,

xarray/tests/test_computation.py::test_corr_lazycorr_consistency[time-da_a3-da_b3]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[time-da_a5-da_b5]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[time-da_a6-da_b6]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[x-da_a3-da_b3]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[x-da_a4-da_b4]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[x-da_a5-da_b5]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[x-da_a6-da_b6]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[x-da_a7-da_b7]
  /usr/lib/python3/dist-packages/dask/core.py:119: RuntimeWarning: invalid value encountered in true_divide
    return func(*(_execute_task(a, cache) for a in args))

xarray/tests/test_computation.py::test_corr_lazycorr_consistency[time-da_a4-da_b4]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[time-da_a7-da_b7]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[x-da_a1-da_b1]
xarray/tests/test_computation.py::test_corr_lazycorr_consistency[x-da_a2-da_b2]
  /usr/lib/python3/dist-packages/dask/array/numpy_compat.py:40: RuntimeWarning: invalid value encountered in true_divide
    x = np.divide(x1, x2, out)

xarray/tests/test_dataarray.py: 12 warnings
  /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:86: RuntimeWarning: invalid value encountered in reduce
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)

xarray/tests/test_distributed.py: 145 warnings
  /usr/lib/python3/dist-packages/tornado/ioloop.py:263: DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()

xarray/tests/test_distributed.py: 22 warnings
  /usr/lib/python3/dist-packages/tornado/platform/asyncio.py:326: DeprecationWarning: There is no current event loop
    self.old_asyncio = asyncio.get_event_loop()

xarray/tests/test_distributed.py: 48 warnings
  /usr/lib/python3/dist-packages/tornado/platform/asyncio.py:193: DeprecationWarning: There is no current event loop
    old_loop = asyncio.get_event_loop()

xarray/tests/test_distributed.py::test_dask_distributed_netcdf_roundtrip[netcdf4-NETCDF3_CLASSIC]
xarray/tests/test_distributed.py::test_dask_distributed_netcdf_roundtrip[netcdf4-NETCDF4_CLASSIC]
xarray/tests/test_distributed.py::test_dask_distributed_netcdf_roundtrip[netcdf4-NETCDF4]
xarray/tests/test_distributed.py::test_dask_distributed_netcdf_roundtrip[scipy-NETCDF3_64BIT]
xarray/tests/test_distributed.py::test_dask_distributed_read_netcdf_integration_test[netcdf4-NETCDF3_CLASSIC]
xarray/tests/test_distributed.py::test_dask_distributed_read_netcdf_integration_test[netcdf4-NETCDF4_CLASSIC]
xarray/tests/test_distributed.py::test_dask_distributed_read_netcdf_integration_test[netcdf4-NETCDF4]
xarray/tests/test_distributed.py::test_dask_distributed_read_netcdf_integration_test[scipy-NETCDF3_64BIT]
xarray/tests/test_distributed.py::test_dask_distributed_rasterio_integration_test
  /usr/lib/python3/dist-packages/distributed/core.py:803: DeprecationWarning: There is no current event loop
    task = asyncio.ensure_future(_close_comm(comm))

xarray/tests/test_distributed.py::test_async
  /usr/lib/python3.10/pathlib.py:572: RuntimeWarning: deallocating CachingFileManager(<function open at 0x7f8b2eead2d0>, '/tmp/tmpbgj8495r/temp-1486.tif', mode='r', kwargs={}), but file is not already closed. This may indicate a bug.
    for a in args:

xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
  /usr/lib/python3/dist-packages/dask/array/reductions.py:538: RuntimeWarning: All-NaN slice encountered
    return np.nanmin(x_chunk, axis=axis, keepdims=keepdims)

xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
xarray/tests/test_duck_array_ops.py::test_datetime_mean[True]
  /usr/lib/python3/dist-packages/dask/array/reductions.py:538: RuntimeWarning: All-NaN axis encountered
    return np.nanmin(x_chunk, axis=axis, keepdims=keepdims)

xarray/tests/test_groupby.py::test_groupby_math_nD_group
  /home/user/python-xarray-0.21.1/xarray/core/dataarray.py:2364: PendingDeprecationWarning: dropping variables using `drop` will be deprecated; using drop_vars is encouraged.
    ds = self._to_temp_dataset().drop(labels, dim, errors=errors)

xarray/tests/test_plot.py::TestFacetGrid::test_facetgrid_polar
xarray/tests/test_plot.py::TestFacetGrid::test_facetgrid_polar
xarray/tests/test_plot.py::TestFacetGrid::test_facetgrid_polar
  /home/user/python-xarray-0.21.1/xarray/plot/plot.py:1476: MatplotlibDeprecationWarning: Auto-removal of grids by pcolor() and pcolormesh() is deprecated since 3.5 and will be removed two minor releases later; please call grid(False) first.
    primitive = ax.pcolormesh(x, y, z, **kwargs)

xarray/tests/test_plot.py::test_datarray_scatter[A-B-None-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-None-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-w-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-w-None-True-True]
  /home/user/python-xarray-0.21.1/xarray/plot/utils.py:1039: MatplotlibDeprecationWarning: 
  The set_bounds function was deprecated in Matplotlib 3.5 and will be removed two minor releases later. Use .axis.set_view_interval and .axis.set_data_interval instead.
    fmt.set_bounds(label_values_min, label_values_max)

xarray/tests/test_plot.py::test_datarray_scatter[A-B-None-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-None-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-w-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-w-None-True-True]
  /home/user/python-xarray-0.21.1/xarray/plot/utils.py:1039: MatplotlibDeprecationWarning: 
  The set_view_interval function was deprecated in Matplotlib 3.5 and will be removed two minor releases later. Use .axis.set_view_interval instead.
    fmt.set_bounds(label_values_min, label_values_max)

xarray/tests/test_plot.py::test_datarray_scatter[A-B-None-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-None-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-None-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-w-None-True-True]
xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-x-w-None-True-True]
  /home/user/python-xarray-0.21.1/xarray/plot/utils.py:1039: MatplotlibDeprecationWarning: 
  The set_data_interval function was deprecated in Matplotlib 3.5 and will be removed two minor releases later. Use .axis.set_data_interval instead.
    fmt.set_bounds(label_values_min, label_values_max)

xarray/tests/test_weighted.py: 308 warnings
  /home/user/python-xarray-0.21.1/xarray/core/computation.py:727: RuntimeWarning: invalid value encountered in sqrt
    result_data = func(*input_data)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
= 11523 passed, 1185 skipped, 35 xfailed, 48 xpassed, 1203 warnings in 378.37s (0:06:18) =                  

Change history (4)

comment:1 by kalxas, 20 months ago

Cc: osgeolive@… added
Priority: criticalmajor

comment:2 by kalxas, 15 months ago

Milestone: OSGeoLive15.0OSGeoLive16.0

Ticket retargeted after milestone closed

comment:3 by darkblueb, 11 months ago

fixed in ol16 alpha 3

user@osgeolive:~$ apt show python3-xarray
Package: python3-xarray
Version: 0.21.1-1
Priority: optional
Section: universe/python
Source: python-xarray
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4169 kB
Depends: python3-numpy, python3-packaging, python3-pandas (>= 0.15.0), python3:any, python3-jinja2
Recommends: python3-bottleneck, python3-dask, python3-netcdf4, python3-h5netcdf, python3-zarr
Suggests: python-xarray-doc, python3-cartopy, python3-matplotlib, python3-pydap, python3-rasterio, python3-scipy, python3-seaborn, python3-toolz
Homepage: http://xarray.pydata.org/
Download-Size: 575 kB
APT-Manual-Installed: no

comment:4 by darkblueb, 11 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.