Bug#1013939: fixed in python-xarray 2022.06.0-3

Paul Gevers elbrus at debian.org
Sat Aug 13 20:39:06 BST 2022


Control: reopen -1

Hi,

On Fri, 12 Aug 2022 11:33:53 +0000 Debian FTP Masters 
<ftpmaster at ftp-master.debian.org> wrote:
>  python-xarray (2022.06.0-3) unstable; urgency=medium
>  .
>    * Depend on scipy >= 1.8.1-8 for fixes. Closes: #1004869, #1013939

But the log [1] that was generated by the migration trial run has the 
output below and the runs in unstable fail too (so no missing 
*versioned* items).

=================================== FAILURES 
===================================
___________________ test_weighted_operations_nonequal_coords 
___________________

     def test_weighted_operations_nonequal_coords():
         # There are no weights for a == 4, so that data point is ignored.
         weights = DataArray(np.random.randn(4), dims=("a",), 
coords=dict(a=[0, 1, 2, 3]))
         data = DataArray(np.random.randn(4), dims=("a",), 
coords=dict(a=[1, 2, 3, 4]))
         check_weighted_operations(data, weights, dim="a", skipna=None)

         q = 0.5
         result = data.weighted(weights).quantile(q, dim="a")
         # Expected value computed using code from 
https://aakinshin.net/posts/weighted-quantiles/ with values at a=1,2,3
         expected = DataArray([0.9308707], coords={"quantile": 
[q]}).squeeze()
 >       assert_allclose(result, expected)
E       AssertionError: Left and right DataArray objects are not close
E
E       Differing values:
E       L
E           array(0.058928)
E       R
E           array(0.930871)

Paul

[1] 
https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-xarray/24742527/log.gz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20220813/c8f6642c/attachment-0001.sig>


More information about the debian-science-maintainers mailing list