Skip to content

Commit

Permalink
Merge pull request #789 from sunpy/nabobalis-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis authored Nov 25, 2024
2 parents 344fd1f + d0c4e42 commit 158b19c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ndcube/ndcube.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ class NDCube(NDCubeBase):
Default is None.
extra_coords : iterable of `tuple`, each with three entries
(`str`, `int`, `astropy.units.quantity` or array-like)
(`str`, `int`, `astropy.units.Quantity` or array-like)
Gives the name, axis of data, and values of coordinates of a data axis not
included in the WCS object.
Expand Down
2 changes: 1 addition & 1 deletion ndcube/wcs/wrappers/tests/test_compound_wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_shared_pixel_axis_compound_3d(spectral_cube_3d_fitswcs, time_1d_fitswcs
[False, True, False]])

world = wcs.pixel_to_world_values(0, 0, 0)
if astropy.__version__ >= "7.0.0.dev":
if astropy.__version__ >= "7.0.0":
np.testing.assert_allclose(world, (14, np.nan, np.nan, -7.0))
np.testing.assert_allclose(wcs.world_to_pixel_values(*world), (0, np.nan, np.nan))
else:
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ filterwarnings =
ignore:Animating a NDCube does not support transposing the array. The world axes may not display as expected because the array will not be transposed:UserWarning
# This is raised by the Windows and mac os build for visualization.rst
ignore:FigureCanvasAgg is non-interactive, and thus cannot be shown:UserWarning
# Oldestdeps from gWCS
ignore:pkg_resources is deprecated as an API:DeprecationWarning
remote_data_strict = True
doctest_subpackage_requires =
docs/explaining_ndcube/* = numpy>=2.0.0

0 comments on commit 158b19c

Please sign in to comment.