Skip to content

Filter name is not written back into cmds #568

@teutoburg

Description

@teutoburg
>>> sim = Simulation("MICADO")
>>> sim.settings["!OBS.filter_name_fw2"]
'Ks'
>>> sim.optical_train["filter_wheel_2"].current_filter.meta["name"]
'Ks'
>>> sim.optical_train["filter_wheel_2"].change_filter("H")
>>> sim.optical_train["filter_wheel_2"].current_filter.meta["name"]
'H'
>>> sim.settings["!OBS.filter_name_fw2"]
'Ks'

This is a problem because other functionality (such as rectification) needs to access the current filter, and also the FITS header get the wrong filter name. Should be addressed in the scope of #561.

Metadata

Metadata

Assignees

Labels

effectsRelated to a ScopeSim effect

Type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions