mzechmeister / serval

calculate radial velocities from stellar spectra
MIT License
36 stars 9 forks source link

SOPHIE 'OBS DATE': IndexError: list index out of range #30

Closed mzechmeister closed 4 years ago

mzechmeister commented 4 years ago

An error message

IndexError: list index out of range

raised in https://github.com/mzechmeister/serval/blob/2042a70378c15215be4faab6ac3c48f757f4185b/src/inst_SOPHIE.py#L81

It seems it was required by older astropy version. For astropy 2.0.3 simply this works:

self.dateobs = hdr[HIERINST+'OBS DATE START']