update_slit_metadata¶
- msaexp.utils.update_slit_metadata(slit)[source]¶
Try to update missing slit metadata.
- This function tries to update missing metadata for a given slit object.
If the slit’s lamp mode is ‘FIXEDSLIT’ and the source name is missing, it sets the source name based on the target’s proposer name and the slit’s name.
If the slit’s source type is missing, it sets it to ‘EXTENDED’.
If the slit’s source type is None, it sets it to ‘EXTENDED’.
If the slit’s slitlet ID is missing, it sets it to 9999.
- Parameters
- slit
jwst.datamodels.SlitModel The slit object to update.
- slit
- Returns
- None