Skip to content

Commit

Permalink
Fix schema configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gmegh committed Oct 9, 2023
1 parent cda8d80 commit bfe0495
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions python/lsst/ts/standardscripts/base_close_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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: >-
Expand Down

0 comments on commit bfe0495

Please sign in to comment.