Skip to content

Commit

Permalink
Merge pull request #34 from observatorycontrolsystem/fix/update_init_…
Browse files Browse the repository at this point in the history
…command

Update the bin validation schema in the inite2e data command
  • Loading branch information
jnation3406 authored Apr 19, 2022
2 parents 5fce73d + 5b6e864 commit e325481
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configdb/hardware/management/commands/init_e2e_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ def add_instrument(self, telescope, ins, ins_state):
readout_mode_type, _ = ModeType.objects.get_or_create(id='readout')
readout_mode, _ = GenericMode.objects.get_or_create(code='default',
defaults={'name': 'Sinistro Readout Mode', 'overhead': 0,
'validation_schema': {"bin_x": {"type": "integer", "allowed": [1], "default": 1},
"bin_y": {"type": "integer", "allowed": [1], "default": 1}}
'validation_schema': {"extra_params": {"type": "dict", "schema": {"bin_x":
{"type": "integer", "allowed": [1], "default": 1, "required": False},
"bin_y": {"type": "integer", "allowed": [1], "default": 1,
"required": False}}, "default": {}, "required": True}}
}
)

Expand Down

0 comments on commit e325481

Please sign in to comment.