Skip to content

Commit

Permalink
fixing remaining numpy.nan* calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmejia committed Sep 24, 2024
1 parent c6b6441 commit 6112848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lvmdrp/functions/imageMethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -2743,7 +2743,7 @@ def extract_spectra(
)
rss.setHdrValue(
"HIERARCH FIBER CENT SIG",
numpy.std(trace_mask._data) if data.size != 0 else 0,
bn.nanstd(trace_mask._data) if data.size != 0 else 0,
)
if method == "optimal":
rss.setHdrValue(
Expand All @@ -2766,7 +2766,7 @@ def extract_spectra(
)
rss.setHdrValue(
"HIERARCH FIBER WIDTH SIG",
numpy.std(trace_fwhm._data) if data.size != 0 else 0,
bn.nanstd(trace_fwhm._data) if data.size != 0 else 0,
)
# save extracted RSS
log.info(f"writing extracted spectra to {os.path.basename(out_rss)}")
Expand Down

0 comments on commit 6112848

Please sign in to comment.