diff --git a/doc/news/DM-46695.perf.rst b/doc/news/DM-46695.perf.rst new file mode 100644 index 000000000..94af94e44 --- /dev/null +++ b/doc/news/DM-46695.perf.rst @@ -0,0 +1 @@ +Add note configuration parameter to `close_loop_comcam.py` script \ No newline at end of file diff --git a/python/lsst/ts/standardscripts/maintel/base_close_loop.py b/python/lsst/ts/standardscripts/maintel/base_close_loop.py index d09b4d91c..c8d12009f 100644 --- a/python/lsst/ts/standardscripts/maintel/base_close_loop.py +++ b/python/lsst/ts/standardscripts/maintel/base_close_loop.py @@ -175,6 +175,12 @@ def get_schema(cls) -> typing.Dict[str, typing.Any]: - type: string - type: "null" default: null + note: + description: Optional note for taking the data. + anyOf: + - type: string + - type: "null" + default: null wep_config: description: Configuration for WEP pipeline. type: string @@ -241,6 +247,7 @@ async def configure(self, config: types.SimpleNamespace) -> None: # Set program and reason self.reason = config.reason self.program = config.program + self.note = config.note # Set WEP configuration file self.wep_config = config.wep_config @@ -320,6 +327,7 @@ async def take_intra_extra_focal_images( filter=self.filter, reason="INTRA" + ("" if self.reason is None else f"_{self.reason}"), program=self.program, + note=self.note, ) self.log.debug("Moving to extra-focal position") @@ -339,6 +347,7 @@ async def take_intra_extra_focal_images( filter=self.filter, reason="EXTRA" + ("" if self.reason is None else f"_{self.reason}"), program=self.program, + note=self.note, ) # Move the hexapod back to in focus position @@ -374,6 +383,7 @@ async def handle_cwfs_mode(self) -> None: reason="INFOCUS" + ("" if self.reason is None else f"_{self.reason}"), program=self.program, filter=self.filter, + note=self.note, ) # Set visit id