Bug#1008947: pyresample breaks pytroll-schedule autopkgtest: TestSphericalPolygon.test_bool
Paul Gevers
elbrus at debian.org
Mon Apr 4 20:43:16 BST 2022
Source: pyresample, pytroll-schedule
Control: found -1 pyresample/1.23.0-1
Control: found -1 pytroll-schedule/0.6.0-1
Severity: serious
Tags: sid bookworm
User: debian-ci at lists.debian.org
Usertags: breaks needs-update
Dear maintainer(s),
With a recent upload of pyresample the autopkgtest of pytroll-schedule
fails in testing when that autopkgtest is run with the binary packages
of pyresample from unstable. It passes when run with only packages from
testing. In tabular form:
pass fail
pyresample from testing 1.23.0-1
pytroll-schedule from testing 0.6.0-1
all others from testing from testing
I copied some of the output at the bottom of this report.
Currently this regression is blocking the migration of pyresample to
testing [1]. Due to the nature of this issue, I filed this bug report
against both packages. Can you please investigate the situation and
reassign the bug to the right package?
More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul
[1] https://qa.debian.org/excuses.php?package=pyresample
https://ci.debian.net/data/autopkgtest/testing/amd64/p/pytroll-schedule/20586576/log.gz
=== python3.10 ===
============================= test session starts
==============================
platform linux -- Python 3.10.4, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /tmp/autopkgtest-lxc.k1ektsm2/downtmp/autopkgtest_tmp
collected 39 items
tests/test_satpass.py ......
[ 15%]
tests/test_schedule.py ..........
[ 41%]
tests/test_spherical.py .....................F.
[100%]
=================================== FAILURES
===================================
________________________ TestSphericalPolygon.test_bool
________________________
self = <trollsched.tests.test_spherical.TestSphericalPolygon
testMethod=test_bool>
def test_bool(self):
"""Test the intersection and union functions.
"""
vertices = np.array([[180, 90, 0, -90],
[89, 89, 89, 89]]).T
poly1 = SphPolygon(np.deg2rad(vertices))
vertices = np.array([[-45, -135, 135, 45],
[89, 89, 89, 89]]).T
poly2 = SphPolygon(np.deg2rad(vertices))
uni = np.array([[157.5, 89.23460094],
[-225., 89.],
[112.5, 89.23460094],
[90., 89.],
[67.5, 89.23460094],
[45., 89.],
[22.5, 89.23460094],
[0., 89.],
[-22.5, 89.23460094],
[-45., 89.],
[-67.5, 89.23460094],
[-90., 89.],
[-112.5, 89.23460094],
[-135., 89.],
[-157.5, 89.23460094],
[-180., 89.]])
inter = np.array([[157.5, 89.23460094],
[112.5, 89.23460094],
[67.5, 89.23460094],
[22.5, 89.23460094],
[-22.5, 89.23460094],
[-67.5, 89.23460094],
[-112.5, 89.23460094],
[-157.5, 89.23460094]])
poly_inter = poly1.intersection(poly2)
poly_union = poly1.union(poly2)
self.assertTrue(poly_inter.area() <= poly_union.area())
self.assertTrue(np.allclose(poly_inter.vertices,
np.deg2rad(inter)))
> self.assertTrue(np.allclose(poly_union.vertices,
np.deg2rad(uni)))
E AssertionError: False is not true
/usr/lib/python3/dist-packages/trollsched/tests/test_spherical.py:492:
AssertionError
-------------- 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/pkg-grass-devel/attachments/20220404/bf2dad29/attachment-0001.sig>
More information about the Pkg-grass-devel
mailing list