[Debian-astro-maintainers] Bug#913757: python-numpy breaks healpy autopkgtest

Sandro Tosi morph at debian.org
Thu Nov 22 23:14:03 GMT 2018


econtrol: reassign -1 healpy
control: notfound python-numpy/1:1.15.4-1

On Wed, Nov 14, 2018 at 3:57 PM Paul Gevers <elbrus at debian.org> wrote:

> =================================== FAILURES
> ===================================
> ______________________ [doctest] healpy.pixelfunc.reorder
> ______________________
> 332     Examples
> 333     --------
> 334     >>> import healpy as hp
> 335     >>> hp.reorder(np.arange(48), r2n = True)
> 336     array([13,  5,  4,  0, 15,  7,  6,  1, 17,  9,  8,  2, 19, 11,
> 10,  3, 28,
> 337            20, 27, 12, 30, 22, 21, 14, 32, 24, 23, 16, 34, 26, 25,
> 18, 44, 37,
> 338            36, 29, 45, 39, 38, 31, 46, 41, 40, 33, 47, 43, 42, 35])
> 339     >>> hp.reorder(np.arange(12), n2r = True)
> 340     array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11])
> 341     >>> print(hp.reorder(hp.ma(np.arange(12.)), n2r = True))
> Expected:
>     [0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0]
> Got:
>     [  0.   1.   2.   3.   4.   5.   6.   7.   8.   9.  10.  11.]

this is a bug in healpy, that requires update in its test suite: while
it's true numpy changed how it prints nparrays, it looks like healpy
compares what `print` generates, not 2 datastructures.

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi



More information about the Debian-astro-maintainers mailing list