Skip to content

Commit

Permalink
fix: HDU unspecified print message
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Cherinka <havok2063@hotmail.com>
  • Loading branch information
rileythai and havok2063 authored Oct 16, 2024
1 parent 4bee136 commit b70c393
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions specutils/io/default_loaders/sdss_v.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,7 @@ def load_sdss_mwm_1d(file_obj, hdu: Optional[int] = None, **kwargs):
for i in range(len(hdulist)):
if hdulist[i].header.get("DATASUM") != "0":
hdu = i
print('HDU not specified. Loading spectrum at (HDU{})'.
format(i))
print(f'HDU not specified. Loading spectrum at (HDU{i}).')
break

return _load_mwmVisit_or_mwmStar_hdu(hdulist, hdu, **kwargs)
Expand Down

0 comments on commit b70c393

Please sign in to comment.