Skip to content

Commit

Permalink
Remove format spec in read in test
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Jun 25, 2024
1 parent e0325b7 commit 8f2522a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specutils/tests/test_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def test_tabular_fits_compressed(compress, tmp_path):
with warnings.catch_warnings():
warnings.simplefilter('ignore', FITSFixedWarning)
os.system(f'{compress} {tmpfile}')
spec = Spectrum1D.read(tmpfile + ext[compress], format='tabular-fits')
spec = Spectrum1D.read(tmpfile + ext[compress])

assert isinstance(spec, Spectrum1D)
assert spec.spectral_axis.shape[0] == len(disp)
Expand All @@ -794,7 +794,7 @@ def test_tabular_fits_compressed(compress, tmp_path):
with warnings.catch_warnings():
warnings.simplefilter('ignore', FITSFixedWarning)
os.system(f'mv {tmpfile}{ext[compress]} {tmpfile}')
spec = Spectrum1D.read(tmpfile, format='tabular-fits')
spec = Spectrum1D.read(tmpfile)

assert isinstance(spec, Spectrum1D)
assert spec.spectral_axis.shape[0] == len(disp)
Expand Down

0 comments on commit 8f2522a

Please sign in to comment.