[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#918625: astropy-healpix: autopkgtest deprecation warning due to new version of python-numpy



Source: astropy-healpix
Version: 0.4-1
User: debian-ci@lists.debian.org
Usertags: needs-update
Control: affects -1 src:python-numpy

[X-Debbugs-CC: debian-ci@lists.debian.org, python-numpy@packages.debian.org]

Dear maintainers,

With a recent upload of python-numpy the autopkgtest of astropy-healpix
fails in testing when that autopkgtest is run with the binary packages
of python-numpy from unstable. It passes when run with only packages
from testing. In tabular form:
                       pass            fail
python-numpy           from testing    1:1.16.0~rc2-1
astropy-healpix        from testing    0.4-1
versioned deps [0]     from testing    from unstable
all others             from testing    from testing

I copied some of the output at the bottom of this report. Your
autopkgtest fails on a Deprecation Warning. If possible, please fix your
autopkgtest to not do that at all, but at least fix this issue.

Currently this regression is contributing to the delay of the migration
of python-numpy to testing [1]. Of course, python-numpy shouldn't just
break your autopkgtest (or even worse, your package), but it seems to me
that the change in python-numpy was intended and your package needs to
update to the new situation. If needed, please change the bug's severity.

I am going have this regression ignored for the python-numpy migration.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] You can see what packages were added from the second line of the log
file quoted below. The migration software adds source package from
unstable to the list if they are needed to install packages from
python-numpy/1:1.16.0~rc2-1. I.e. due to versioned dependencies or
breaks/conflicts.
[1] https://qa.debian.org/excuses.php?package=python-numpy

https://ci.debian.net/data/autopkgtest/testing/amd64/a/astropy-healpix/1658971/log.gz

=================================== FAILURES
===================================
_________________________________ test_vec2pix
_________________________________

    @given(nside_pow=integers(0, 29), nest=booleans(),
>          x=floats(-1, 1, allow_nan=False,
allow_infinity=False).filter(lambda x: abs(x) > 1e-10),
           y=floats(-1, 1, allow_nan=False,
allow_infinity=False).filter(lambda y: abs(y) > 1e-10),
           z=floats(-1, 1, allow_nan=False,
allow_infinity=False).filter(lambda z: abs(z) > 1e-10))

/usr/lib/python3/dist-packages/astropy_healpix/tests/test_healpy.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/hypothesis/core.py:519: in execute
    result = self.test_runner(data, run)
/usr/lib/python3/dist-packages/hypothesis/executors.py:58: in
default_new_style_executor
    return function(data)
/usr/lib/python3/dist-packages/hypothesis/core.py:517: in run
    return test(*args, **kwargs)
/usr/lib/python3/dist-packages/astropy_healpix/tests/test_healpy.py:118:
in test_vec2pix
    x=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda
x: abs(x) > 1e-10),
/usr/lib/python3/dist-packages/hypothesis/core.py:464: in test
    result = self.test(*args, **kwargs)
/usr/lib/python3/dist-packages/astropy_healpix/tests/test_healpy.py:124:
in test_vec2pix
    ipix1 = hp_compat.vec2pix(nside, x, y, z, nest=nest)
/usr/lib/python3/dist-packages/astropy_healpix/healpy.py:124: in vec2pix
    theta = np.asscalar(theta)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

a = array([ 0.95531662])

    @array_function_dispatch(_asscalar_dispatcher)
    def asscalar(a):
        """
        Convert an array of size 1 to its scalar equivalent.

        .. deprecated:: 1.16

            Deprecated, use `numpy.ndarray.item()` instead.

        Parameters
        ----------
        a : ndarray
            Input array of size 1.

        Returns
        -------
        out : scalar
            Scalar representation of `a`. The output data type is the
same type
            returned by the input's `item` method.

        Examples
        --------
        >>> np.asscalar(np.array([24]))
        24

        """

        # 2018-10-10, 1.16
        warnings.warn('np.asscalar(a) is deprecated since NumPy v1.16, use '
>                     'a.item() instead', DeprecationWarning, stacklevel=1)
E       DeprecationWarning: np.asscalar(a) is deprecated since NumPy
v1.16, use a.item() instead

/usr/lib/python3/dist-packages/numpy/lib/type_check.py:546:
DeprecationWarning
---------------------------------- Hypothesis
----------------------------------
Falsifying example: test_vec2pix(nside_pow=0, x=1.0000000827403713e-10,
y=1.0000000827403713e-10, z=1.0000000827403713e-10, nest=False)
______________________________ test_vec2pix_shape
______________________________

    def test_vec2pix_shape():
>       ipix = hp_compat.vec2pix(8, 1., 2., 3.)

/usr/lib/python3/dist-packages/astropy_healpix/tests/test_healpy.py:142:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/astropy_healpix/healpy.py:124: in vec2pix
    theta = np.asscalar(theta)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

a = array([ 0.64052231])

    @array_function_dispatch(_asscalar_dispatcher)
    def asscalar(a):
        """
        Convert an array of size 1 to its scalar equivalent.

        .. deprecated:: 1.16

            Deprecated, use `numpy.ndarray.item()` instead.

        Parameters
        ----------
        a : ndarray
            Input array of size 1.

        Returns
        -------
        out : scalar
            Scalar representation of `a`. The output data type is the
same type
            returned by the input's `item` method.

        Examples
        --------
        >>> np.asscalar(np.array([24]))
        24

        """

        # 2018-10-10, 1.16
        warnings.warn('np.asscalar(a) is deprecated since NumPy v1.16, use '
>                     'a.item() instead', DeprecationWarning, stacklevel=1)
E       DeprecationWarning: np.asscalar(a) is deprecated since NumPy
v1.16, use a.item() instead


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: