Skip to content

Commit

Permalink
fixing some linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ymamay committed Sep 12, 2024
1 parent ccb5d0b commit 17aadf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/lvmdrp/core/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from astropy.io import fits as pyfits
from astropy.modeling import fitting, models
from astropy.stats.biweight import biweight_location, biweight_scale
from scipy import ndimage, signal
from scipy import ndimage
from scipy import interpolate

from lvmdrp import log
Expand Down
6 changes: 3 additions & 3 deletions python/lvmdrp/core/sky.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,21 +279,21 @@ def skymodel_pars_header(header):
sci_target_ra, sci_target_dec = sci_ra * u.deg, sci_dec * u.deg
sci_target = Star(ra_hours=sci_target_ra.to(u.hourangle), dec_degrees=sci_target_dec.to(u.deg))
sci_t = obs.observe(sci_target).apparent()
except:
except Exception:
sci_t = np.nan

try:
skye_target_ra, skye_target_dec = skye_ra * u.deg, skye_dec * u.deg
skye_target = Star(ra_hours=skye_target_ra.to(u.hourangle), dec_degrees=skye_target_dec.to(u.deg))
skye_t = obs.observe(skye_target).apparent()
except:
except Exception:
skye_t = np.nan

try:
skyw_target_ra, skyw_target_dec = skyw_ra * u.deg, skyw_dec * u.deg
skyw_target = Star(ra_hours=skyw_target_ra.to(u.hourangle), dec_degrees=skyw_target_dec.to(u.deg))
skyw_t = obs.observe(skyw_target).apparent()
except:
except Exception:
skyw_t = np.nan

# observatory height ('sm_h' in km)
Expand Down

0 comments on commit 17aadf5

Please sign in to comment.