Skip to content

Commit

Permalink
group_id again. central_wavelength for flat, arc and slitillum only, …
Browse files Browse the repository at this point in the history
…not targets.
  • Loading branch information
KathleenLabrie committed Aug 14, 2020
1 parent 351e946 commit 0988960
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gemini_instruments/gmos/adclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,6 @@ def group_id(self):
'read_mode', 'amp_read_area']
if 'SPECT' in tags:
unique_id_descriptor_list_all.append('disperser')
unique_id_descriptor_list_all.append('central_wavelength')

# List to format descriptor calls using 'pretty=True' parameter
call_pretty_version_list = ['filter_name', 'disperser']
Expand All @@ -703,8 +702,11 @@ def group_id(self):
id_descriptor_list = ['exposure_time']
elif 'IMAGE' in tags and ('FLAT' in tags or 'TWILIGHT' in tags):
id_descriptor_list = ['filter_name']
elif 'SPECT' in tags and ('FLAT' in tags or 'SLITILLUM' in tags):
id_descriptor_list = ['filter_name']
elif 'SPECT' in tags and ('FLAT' in tags or 'SLITILLUM' in tags
or 'ARC' in tags):
# unclear if STANDARD requires central_wavelength
# depends on the effects of grating efficiency as f(cwave)
id_descriptor_list = ['filter_name', 'central_wavelength']
else:
id_descriptor_list = ['observation_id', 'filter_name']

Expand Down

0 comments on commit 0988960

Please sign in to comment.