Skip to content

Commit

Permalink
Merge pull request #564 from Cadair/2.0
Browse files Browse the repository at this point in the history
[2.0] "fix" reproject 0.9 issues
  • Loading branch information
nabobalis authored Sep 23, 2022
2 parents 3fcbdbb + e7725a0 commit 4b85f9f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelog/564.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Limit maximum reproject version due to API changes. ndcube 2.1 will support the
new reproject keyword arguments.
4 changes: 3 additions & 1 deletion ndcube/extra_coords/tests/test_extra_coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,11 @@ def test_dropped_dimension_reordering():


def test_length1_extra_coord(wave_lut):
# This test hits a bug that existed in gwcs less than 0.16.1
pytest.importorskip("gwcs", minversion="0.16.1")
ec = ExtraCoords()
ec.add("wavey", 0, wave_lut)
item = slice(1, 2)
sec = ec[item]
assert (sec.wcs.pixel_to_world(0)[0] == wave_lut[item]).all()
assert (sec.wcs.pixel_to_world(0) == wave_lut[item]).all()
assert (sec.wcs.world_to_pixel(wave_lut[item])[0] == [0]).all()
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ plotting =
matplotlib>=3.2
mpl_animators>=1.0
reproject =
reproject>=0.7.1
reproject>=0.7.1,<0.10

[options.packages.find]
exclude = ndcube._dev
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ passenv =
NO_PROXY
CIRCLECI
deps =
# We need this for some packages.
setuptools
# To avoid warnings we only test with 0.8.
# We only support <0.9
reproject<0.9

# The devdeps factor is intended to be used to install the latest developer version.
# of key dependencies.
Expand Down

0 comments on commit 4b85f9f

Please sign in to comment.