-
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.
Add schema validation support to base_calsys.py and schema file for A…
…TCalsys class
- Loading branch information
1 parent
30d6189
commit cc485db
Showing
2 changed files
with
96 additions
and
1 deletion.
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
59 changes: 59 additions & 0 deletions
59
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,59 @@ | ||
$id: https://github.com/lsst-ts/ts_observatory_control/blob/develop/python/lsst/ts/observatory/control/data/atcalsys_schema.yaml | ||
$schema: http://json-schema.org/draft-07/schema# | ||
title: Configuration file validation schema of Auxiliary Telescope Calibration System | ||
type: object | ||
properties: | ||
calib_type: | ||
type: string | ||
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 | ||
exit_slit: | ||
type: number | ||
entrance_slit: | ||
type: number | ||
electrometer_integration_time: | ||
type: number | ||
electrometer_mode: | ||
type: string | ||
electrometer_range: | ||
type: number | ||
use_fiberspectrograph: | ||
type: boolean | ||
use_electrometer: | ||
type: boolean | ||
exposure_times: | ||
type: array | ||
items: | ||
type: number | ||
|
||
electrometer_exposure_time: | ||
type: number | ||
fiber_spectrum_exposure_time: | ||
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 |