Skip to content

Commit

Permalink
removing lingering variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmejia committed Dec 2, 2024
1 parent 71e5a17 commit f249724
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions python/lvmdrp/functions/rssMethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,9 +1638,6 @@ def apply_fiberflat(in_rss: str, out_frame: str, in_flat: str, clip_below: float
log.info(f"reading target data from {os.path.basename(in_rss)}")
rss = RSS.from_file(in_rss)

# compute initial variance
ifibvar = bn.nanmean(bn.nanvar(rss._data, axis=0))

# load fiberflat
log.info(f"reading fiberflat from {os.path.basename(in_flat)}")
flat = RSS.from_file(in_flat)
Expand Down Expand Up @@ -1680,9 +1677,6 @@ def apply_fiberflat(in_rss: str, out_frame: str, in_flat: str, clip_below: float
spec_new = spec_data / spec_flat._data
rss.setSpec(i, spec_new)

# compute final variance
ffibvar = bn.nanmean(bn.nanvar(rss._data, axis=0))

# load ancillary data
log.info(f"writing lvmFrame to {os.path.basename(out_frame)}")

Expand Down

0 comments on commit f249724

Please sign in to comment.