From bfe0495897ea0c59bed3215b9bd27edeb7b72b79 Mon Sep 17 00:00:00 2001 From: gmegh Date: Mon, 9 Oct 2023 08:59:08 +0900 Subject: [PATCH] Fix schema configuration --- .../ts/standardscripts/base_close_loop.py | 26 +++---------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/python/lsst/ts/standardscripts/base_close_loop.py b/python/lsst/ts/standardscripts/base_close_loop.py index 48e124963..1d7a7cb5e 100644 --- a/python/lsst/ts/standardscripts/base_close_loop.py +++ b/python/lsst/ts/standardscripts/base_close_loop.py @@ -117,7 +117,7 @@ async def configure_tcs(self) -> None: @classmethod def get_schema(cls) -> typing.Dict[str, typing.Any]: - schema_yaml = """ + schema_yaml = f""" $schema: http://json-schema.org/draft-07/schema# $id: https://github.com/lsst-ts/ts_standardscripts/auxtel/BaseClosedLoop.yaml title: BaseClosedLoop v1 @@ -154,16 +154,7 @@ def get_schema(cls) -> typing.Dict[str, typing.Any]: minimum: 0 minItems: 50 maxItems: 50 - default: [0.004, 0.004, 0.004, 0.004, 0.004, - 0.004, 0.004, 0.004, 0.004, 0.004, - 0.004, 0.004, 0.004, 0.004, 0.004, - 0.004, 0.004, 0.004, 0.004, 0.004, - 0.004, 0.004, 0.004, 0.004, 0.004, - 0.004, 0.004, 0.004, 0.004, 0.004, - 0.004, 0.004, 0.004, 0.004, 0.004, - 0.004, 0.004, 0.004, 0.004, 0.004, - 0.004, 0.004, 0.004, 0.004, 0.004, - 0.004, 0.004, 0.004, 0.004, 0.004] + default: {[0.004]*50} max_iter: description: Maximum number of iterations. Note, if apply_corrections is False, the script @@ -191,18 +182,7 @@ def get_schema(cls) -> typing.Dict[str, typing.Any]: - type: array items: type: string - enum: [ - "M2_dz", "M2_dx", "M2_dy", "M2_rx", "M2_ry", - "Cam_dz", "Cam_dx", "Cam_dy", "Cam_rx", "Cam_ry", - "M1M3_B1", "M1M3_B2", "M1M3_B3", "M1M3_B4", "M1M3_B5", - "M1M3_B6", "M1M3_B7", "M1M3_B8", "M1M3_B9", "M1M3_B10", - "M1M3_B11", "M1M3_B12", "M1M3_B13", "M1M3_B14", "M1M3_B15", - "M1M3_B16", "M1M3_B17", "M1M3_B18", "M1M3_B19", "M1M3_B20", - "M2_B1", "M2_B2", "M2_B3", "M2_B4", "M2_B5", - "M2_B6", "M2_B7", "M2_B8", "M2_B9", "M2_B10", - "M2_B11", "M2_B12", "M2_B13", "M2_B14", "M2_B15", - "M2_B16", "M2_B17", "M2_B18", "M2_B19", "M2_B20" - ] + enum: {[dof_name.name for dof_name in DOFName]} default: [1, 2, 3, 4, 5] apply_corrections: description: >-