Skip to content

Add slit_name parameter to LSS simulations#163

Open
astronomyk wants to merge 4 commits intomainfrom
shs/add-slit-names
Open

Add slit_name parameter to LSS simulations#163
astronomyk wants to merge 4 commits intomainfrom
shs/add-slit-names

Conversation

@astronomyk
Copy link

@astronomyk astronomyk commented Feb 17, 2026

Allow overriding the spectroscopic slit via a slit_name parameter at both the global (params) and per-recipe (YAML) level. The parameter flows through to cmd["!OBS.slit"] in ScopeSim before OpticalTrain creation. The updateHeaders() slit handling now reads the actual slit from the FITS header (HIERARCH ESO INS OPTI3 NAME) instead of being hardcoded to C-38_1.

Caveat - not sure if this is the right way to go about it, but it's what Shannon and I found that works now (without fully understanding the code base)

Allow overriding the spectroscopic slit via a slit_name parameter at
both the global (params) and per-recipe (YAML) level. The parameter
flows through to cmd["!OBS.slit"] in ScopeSim before OpticalTrain
creation. The updateHeaders() slit handling now reads the actual slit
from the FITS header (HIERARCH ESO INS OPTI3 NAME) instead of being
hardcoded to C-38_1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hugobuddel
Copy link
Contributor

hugobuddel commented Feb 18, 2026

We should move towards having all header keywords specified in the IRDB, so people can use ScopeSIM directly. The FITS header keywords were added here as a hack, because "it worked".

You should know the IRDB / ScopeSim well enough to add this logic directly there (because we wrote that code just before you got snatched by the manager machine).

(Edit: talking to Kieran here. To Shannon: Thanks for stepping in this gap and making ScopeSim useful for the AIT people!)

…"] , "!OBS.detector_readout_mode" to ScopesimWrapper.py. These can now be Included in the .yaml files as : 'slit_name', 'pupil_transmission' , 'detector_readout_mode'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants