-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from lsst-ts/tickets/DM-45260
Add configuration schema validation support to BaseCalsys and schema files for ATCalsys and MTCalsys classes
- Loading branch information
Showing
4 changed files
with
186 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add configuration schema validation support to ``BaseCalsys`` and schema validation files for ``ATCalsys`` and ``MTCalsys`` classes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
python/lsst/ts/observatory/control/data/atcalsys_schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
$schema: http://json-schema.org/draft-07/schema# | ||
$id: https://github.com/lsst-ts/ts_observatory_control/blob/develop/python/lsst/ts/observatory/control/data/atcalsys_schema.yaml | ||
title: Configuration file validation schema of Auxiliary Telescope Calibration System | ||
type: object | ||
properties: | ||
calib_type: | ||
type: string | ||
enum: | ||
- Mono | ||
- WhiteLight | ||
use_camera: | ||
type: boolean | ||
atspec_filter: | ||
type: string | ||
atspec_grating: | ||
type: string | ||
wavelength: | ||
type: number | ||
wavelength_width: | ||
type: number | ||
wavelength_resolution: | ||
type: number | ||
monochromator_grating: | ||
type: string | ||
enum: | ||
- MIRROR | ||
- RED | ||
- BLUE | ||
exit_slit: | ||
type: number | ||
entrance_slit: | ||
type: number | ||
electrometer_integration_time: | ||
type: number | ||
electrometer_mode: | ||
type: string | ||
enum: | ||
- CURRENT | ||
- CHARGE | ||
- VOLTAGE | ||
- RESISTANCE | ||
electrometer_range: | ||
type: number | ||
use_fiberspectrograph: | ||
type: boolean | ||
use_electrometer: | ||
type: boolean | ||
exposure_times: | ||
type: array | ||
items: | ||
type: number | ||
required: | ||
- calib_type | ||
- use_camera | ||
- atspec_filter | ||
- atspec_grating | ||
- wavelength | ||
- monochromator_grating | ||
- exit_slit | ||
- entrance_slit | ||
- electrometer_integration_time | ||
- electrometer_mode | ||
- electrometer_range | ||
- use_fiberspectrograph | ||
- use_electrometer | ||
- exposure_times | ||
additionalProperties: false |
75 changes: 75 additions & 0 deletions
75
python/lsst/ts/observatory/control/data/mtcalsys_schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
$schema: http://json-schema.org/draft-07/schema# | ||
$id: https://github.com/lsst-ts/ts_observatory_control/blob/develop/python/lsst/ts/observatory/control/data/mtcalsys_schema.yaml | ||
title: Configuration file validation schema of Main Telescope Calibration System | ||
type: object | ||
properties: | ||
calib_type: | ||
type: string | ||
enum: | ||
- Mono | ||
- WhiteLight | ||
use_camera: | ||
type: boolean | ||
mtcamera_filter: | ||
type: string | ||
led_name: | ||
type: array | ||
items: | ||
type: string | ||
enum: | ||
- M385L3 | ||
- M455L4 | ||
- M505L4 | ||
- M565L3 | ||
- M660L4 | ||
- M730L5 | ||
- M780LP1 | ||
- M850L3 | ||
- M940L3 | ||
- M970L4 | ||
wavelength: | ||
type: number | ||
wavelength_width: | ||
type: number | ||
wavelength_resolution: | ||
type: number | ||
led_location: | ||
type: number | ||
led_focus: | ||
type: number | ||
use_electrometer: | ||
type: boolean | ||
use_fiberspectrograph_red: | ||
type: boolean | ||
use_fiberspectrograph_blue: | ||
type: boolean | ||
electrometer_integration_time: | ||
type: number | ||
electrometer_mode: | ||
type: string | ||
enum: | ||
- CURRENT | ||
- CHARGE | ||
- VOLTAGE | ||
- RESISTANCE | ||
electrometer_range: | ||
type: number | ||
exposure_times: | ||
type: array | ||
items: | ||
type: number | ||
required: | ||
- calib_type | ||
- use_camera | ||
- mtcamera_filter | ||
- wavelength | ||
- led_location | ||
- led_focus | ||
- use_electrometer | ||
- use_fiberspectrograph_red | ||
- use_fiberspectrograph_blue | ||
- electrometer_integration_time | ||
- electrometer_mode | ||
- electrometer_range | ||
- exposure_times | ||
additionalProperties: false |