From b70c393bcba1e7a2c310d940560336750e2444d3 Mon Sep 17 00:00:00 2001 From: riley <127359621+rileythai@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:59:48 +1100 Subject: [PATCH] fix: HDU unspecified print message Co-authored-by: Brian Cherinka --- specutils/io/default_loaders/sdss_v.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specutils/io/default_loaders/sdss_v.py b/specutils/io/default_loaders/sdss_v.py index e3195d31f..cf9a297b3 100644 --- a/specutils/io/default_loaders/sdss_v.py +++ b/specutils/io/default_loaders/sdss_v.py @@ -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)