Skip to content

Commit

Permalink
fix x-shooter
Browse files Browse the repository at this point in the history
  • Loading branch information
rcooke-ast committed Jul 12, 2023
1 parent eb12177 commit 2144336
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
20 changes: 0 additions & 20 deletions pypeit/spectrographs/shane_kast.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,26 +105,6 @@ def compound_meta(self, headarr, meta_key):
return ttime.mjd
msgs.error("Not ready for this compound meta")

def config_independent_frames(self):
"""
Define frame types that are independent of the fully defined
instrument configuration.
This method returns a dictionary where the keys of the dictionary are
the list of configuration-independent frame types. The value of each
dictionary element can be set to one or more metadata keys that can
be used to assign each frame type to a given configuration group. See
:func:`~pypeit.metadata.PypeItMetaData.set_configurations` and how it
interprets the dictionary values, which can be None.
Returns:
:obj:`dict`: Dictionary where the keys are the frame types that
are configuration-independent and the values are the metadata
keywords that can be used to assign the frames to a configuration
group.
"""
return {'bias':None, 'dark':None}

def configuration_keys(self):
"""
Return the metadata keys that define a unique instrument
Expand Down
4 changes: 2 additions & 2 deletions pypeit/spectrographs/spectrograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ def configuration_keys(self):
Returns:
:obj:`list`: List of keywords of data pulled from file headers
and used to constuct the :class:`~pypeit.metadata.PypeItMetaData`
and used to construct the :class:`~pypeit.metadata.PypeItMetaData`
object.
"""
return ['dispname', 'dichroic', 'decker']
Expand Down Expand Up @@ -846,7 +846,7 @@ def config_independent_frames(self):
keywords that can be used to assign the frames to a configuration
group.
"""
return {}
return {'bias':None, 'dark':None}

def get_comb_group(self, fitstbl):
"""
Expand Down
22 changes: 21 additions & 1 deletion pypeit/spectrographs/vlt_xshooter.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,26 @@ def compound_meta(self, headarr, meta_key):
return parse.binning2string(binspec, binspatial)
msgs.error("Not ready for this compound meta")

def config_independent_frames(self):
"""
Define frame types that are independent of the fully defined
instrument configuration.
This method returns a dictionary where the keys of the dictionary are
the list of configuration-independent frame types. The value of each
dictionary element can be set to one or more metadata keys that can
be used to assign each frame type to a given configuration group. See
:func:`~pypeit.metadata.PypeItMetaData.set_configurations` and how it
interprets the dictionary values, which can be None.
Returns:
:obj:`dict`: Dictionary where the keys are the frame types that
are configuration-independent and the values are the metadata
keywords that can be used to assign the frames to a configuration
group.
"""
return {'bias': 'arm', 'dark': 'arm'}

def configuration_keys(self):
"""
Return the metadata keys that define a unique instrument
Expand All @@ -94,7 +114,7 @@ def configuration_keys(self):
Returns:
:obj:`list`: List of keywords of data pulled from file headers
and used to constuct the :class:`~pypeit.metadata.PypeItMetaData`
and used to construct the :class:`~pypeit.metadata.PypeItMetaData`
object.
"""
return ['arm']
Expand Down

0 comments on commit 2144336

Please sign in to comment.