During astroinfo 2021, we used your great tutorials and one of the participant founds a bug in the tutorials UVES, in the function read_setup()
def read_setup(filename):
'''Get setup for UVES spectrum from the ESO pipeline
Parameters
----------
filename : string
name of the fits file with the data
Returns
-------
exposure_time : float
wavelength_zero_point : float
optical_arm : string
'''
sp = fits.open(filelist[0])
header = sp[0].header
return header['EXPTIME'], header['CRVAL1'], header['HIERARCH ESO INS PATH'
sp = fits.open(filelist[0]) should be sp = fits.open(filename).
In the loop :
for f in filelist:
print(read_setup(f))
all the setup are the same because it is always the same print filelist[0].
During astroinfo 2021, we used your great tutorials and one of the participant founds a bug in the tutorials UVES, in the function read_setup()
sp = fits.open(filelist[0])
should besp = fits.open(filename)
.In the loop :
all the setup are the same because it is always the same print filelist[0].