Skip to content

Commit

Permalink
new log
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Corcho-Caballero committed Apr 9, 2024
1 parent b01cd78 commit 3992a4e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/pykoala/instruments/weave.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# KOALA packages
# =============================================================================
from pykoala.rss import RSS
from pykoala.data_container import HistoryLog

def weave_rss(filename):
'''Read a WEAVE "single exposure" file (i.e. row-stacked spectra for just one arm)'''
Expand All @@ -31,15 +32,7 @@ def weave_rss(filename):
variance = np.where(hdu[4].data > 0, 1/hdu[4].data, np.nan)
fibtable = Table.read(hdu['FIBTABLE'])

# This is ugly :^(
log = {'read': {'comment': None, 'index': None},
'mask from file': {'comment': None, 'index': 0},
'blue edge': {'comment': None, 'index': 1},
'red edge': {'comment': None, 'index': 2},
'cosmic': {'comment': None, 'index': 3},
'extreme negative': {'comment': None, 'index': 4},
'wavelength fix': {'comment': None, 'index': None, 'sol': []}}

log = HistoryLog()
info = {}

print(f'Targets in {filename}:')
Expand Down

0 comments on commit 3992a4e

Please sign in to comment.