[Debian-astro-maintainers] Bug#1029692: gwcs: tests fail with scipy 1.10

Drew Parsons dparsons at debian.org
Thu Jan 26 11:46:35 GMT 2023


Package: gwcs
Version: 0.18.3-1
Severity: normal

scipy 1.10 is now available in experimental.
gwcs fails debci tests using it.

We are considering uploading scipy 1.10 to unstable in order to
included it in the forthcoming stable release.  If we proceed with
that, then this bug will become Severity: serious.

The errors are ValueError: buffer source array is read-only
A sample from the failing test log is

__________________________ test_to_fits_tab_miri_lrs ___________________________

    def test_to_fits_tab_miri_lrs():
        af = asdf.open(get_pkg_data_filename('data/miri_lrs_wcs.asdf'))
        w = af.tree['wcs']
    
        # FITS WCS -TAB:
>       hdr, bt = w.to_fits(sampling=0.25)

/usr/lib/python3/dist-packages/gwcs/tests/test_wcs.py:1027: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3/dist-packages/gwcs/wcs.py:2447: in to_fits
    hdr, bin_table_hdu = self._to_fits_tab(
/usr/lib/python3/dist-packages/gwcs/wcs.py:2631: in _to_fits_tab
    transform(*xyz),
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1136: in __call__
    outputs = self._generic_evaluate(evaluate, inputs, fill_value, with_bbox)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1098: in _generic_evaluate
    outputs = evaluate(_inputs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3352: in evaluate
    return self._evaluate(*_inputs, **kwargs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3380: in _evaluate
    leftval = self.left(*args, **kw)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1136: in __call__
    outputs = self._generic_evaluate(evaluate, inputs, fill_value, with_bbox)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1098: in _generic_evaluate
    outputs = evaluate(_inputs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3352: in evaluate
    return self._evaluate(*_inputs, **kwargs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3380: in _evaluate
    leftval = self.left(*args, **kw)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1136: in __call__
    outputs = self._generic_evaluate(evaluate, inputs, fill_value, with_bbox)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1098: in _generic_evaluate
    outputs = evaluate(_inputs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3352: in evaluate
    return self._evaluate(*_inputs, **kwargs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3395: in _evaluate
    return self.right(*leftval, **kw)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1136: in __call__
    outputs = self._generic_evaluate(evaluate, inputs, fill_value, with_bbox)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1098: in _generic_evaluate
    outputs = evaluate(_inputs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3352: in evaluate
    return self._evaluate(*_inputs, **kwargs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3388: in _evaluate
    rightval = self.right(*(args[self.left.n_inputs :]), **kw)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1136: in __call__
    outputs = self._generic_evaluate(evaluate, inputs, fill_value, with_bbox)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1098: in _generic_evaluate
    outputs = evaluate(_inputs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3352: in evaluate
    return self._evaluate(*_inputs, **kwargs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:3397: in _evaluate
    return self.right(leftval, **kw)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:424: in __call__
    new_call = make_function_with_signature(
/usr/lib/python3/dist-packages/astropy/modeling/core.py:401: in __call__
    return super(cls, self).__call__(*inputs, **kwargs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1136: in __call__
    outputs = self._generic_evaluate(evaluate, inputs, fill_value, with_bbox)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:1098: in _generic_evaluate
    outputs = evaluate(_inputs)
/usr/lib/python3/dist-packages/astropy/modeling/core.py:984: in evaluate
    return self.evaluate(*chain(_inputs, parameters))
/usr/lib/python3/dist-packages/astropy/modeling/tabular.py:242: in evaluate
    result = interpn(
/usr/lib/python3/dist-packages/scipy/interpolate/_rgi.py:654: in interpn
    return interp(xi)
/usr/lib/python3/dist-packages/scipy/interpolate/_rgi.py:331: in __call__
    indices, norm_distances = self._find_indices(xi.T)
/usr/lib/python3/dist-packages/scipy/interpolate/_rgi.py:499: in _find_indices
    return find_indices(self.grid, xi)
_rgi_cython.pyx:95: in scipy.interpolate._rgi_cython.find_indices
    ???
stringsource:660: in View.MemoryView.memoryview_cwrapper
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   ValueError: buffer source array is read-only

stringsource:350: ValueError



More information about the Debian-astro-maintainers mailing list