Skip to content

Commit

Permalink
format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Sep 14, 2024
1 parent da74e85 commit af9662f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iris/sg/_spectrograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,12 @@ def from_fits(
key_center = f"TWAVE{index_window}"
self.wavelength_center[index] = hdul[0].header[key_center] * u.AA

self.inputs.time.ndarray = astropy.time.Time(
t = astropy.time.Time(
val=self.inputs.time.ndarray,
format="jd",
).isot
)
t.format = "isot"
self.inputs.time.ndarray= t

where_invalid = self.outputs < -10 * u.DN
self.outputs[where_invalid] = np.nan
Expand Down

0 comments on commit af9662f

Please sign in to comment.