Skip to content

Commit

Permalink
Add note configuration parameter to close_loop_comcam.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
gmegh committed Oct 8, 2024
1 parent 995ba83 commit 2789781
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/news/DM-46695.perf.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add note configuration parameter to `close_loop_comcam.py` script
10 changes: 10 additions & 0 deletions python/lsst/ts/standardscripts/maintel/base_close_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ def get_schema(cls) -> typing.Dict[str, typing.Any]:
- type: string
- type: "null"
default: null
note:
description: A descriptive note about the image being taken.
anyOf:
- type: string
- type: "null"
default: null
wep_config:
description: Configuration for WEP pipeline.
type: string
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2789781

Please sign in to comment.