Closed avalentino closed 1 year ago
The wrapping of longitudes was fixed in pyresample. This test is probably wrong and "just" needs to be updated. @ghiggi have more guesses since he did the updates on pyresample.
@djhoese Yes the test in pytroll-schedule should be updated as the following pyresample test.
There is lot of duplicated code in pytroll-schedule/spherical.py
.
The definition of SCoordinate
, CCoordinate
and Arc
class is the same as the one in pyresample/spherical.py
, and such classes could be simply imported from pyresample.
Yes, the code originally lived in pytroll-schedule and was copied to pyresample. I don't use pytroll-schedule so I haven't worked on removing the duplication. I wonder what @pnuu and @mraspaud think or if they have a plan to remove the duplication?
I just noticed this while looking at open PRs and saw the tests in Dependabot were failing. I have no understanding of the internals, so I guess we need to wait and see what @mraspaud thinks after holidays. My "fix" would be to just update the test reference values..
I think I don't use the package directly anywhere :thinking: The geographic gatherer in pytroll-collector uses this, but that's a part I doubt I have looked into in depth.
Oh, I think @mraspaud already started at least with the duplication of Pyresample code in https://github.com/pytroll/pytroll-schedule/pull/72
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
The
test_bool
unittest fails. The issue seems to be relate to the normalization of spherical coordinates (+/- 2*pi). The problem seems to only happen with the latest version of pyresample (v1.23).Expected Output
All tests pass.
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
Python 3.10.4 pyresample 1.23 pytroll-schedule v0.6.0