Skip to content

Commit

Permalink
Merge pull request astropy#14845 from arthurxvtv/14844-Adress-Rule-C4…
Browse files Browse the repository at this point in the history
…00-violation-in-the-astropy/wcs/tests-and-astropy/time/tests-sub-packages

astropy#14844
  • Loading branch information
pllim committed May 18, 2023
2 parents 80f5a71 + 935ea78 commit 5b771e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion astropy/time/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,7 @@ def test_to_value_with_subfmt_for_every_format(fmt_name, fmt_class):
to_value(format, subfmt) works. See #9812, #9361.
"""
t = Time("2000-01-01")
subfmts = list(subfmt[0] for subfmt in fmt_class.subfmts) + [None, "*"]
subfmts = [subfmt[0] for subfmt in fmt_class.subfmts] + [None, "*"]
for subfmt in subfmts:
t.to_value(fmt_name, subfmt)

Expand Down
2 changes: 1 addition & 1 deletion astropy/wcs/tests/test_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_wcstab_swapaxes_same_val_roundtrip():
filename = get_pkg_data_filename("data/tab-time-last-axis.fits")

axes_order = [3, 2, 1]
axes_order0 = list(i - 1 for i in axes_order)
axes_order0 = [i - 1 for i in axes_order]

with fits.open(filename) as hdul:
w = wcs.WCS(hdul[0].header, hdul)
Expand Down
2 changes: 1 addition & 1 deletion astropy/wcs/tests/test_wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ def test_swapaxes_same_val_roundtrip():
w.wcs.cdelt = [1.0, 1.0, 1.0]
w.wcs.set()
axes_order = [3, 2, 1]
axes_order0 = list(i - 1 for i in axes_order)
axes_order0 = [i - 1 for i in axes_order]
ws = w.sub(axes_order)
imcoord = np.array([3, 5, 7])
imcoords = imcoord[axes_order0]
Expand Down

0 comments on commit 5b771e3

Please sign in to comment.