Skip to content

Commit

Permalink
Merge pull request #117 from LCOGT/111-copied-requests-or-drafts-thro…
Browse files Browse the repository at this point in the history
…w-errors-when-readout-mode-is-changed

remove binning extra params when changing modes
  • Loading branch information
jchate6 authored Dec 16, 2024
2 parents 0cb914e + 12e46f1 commit cb072f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/InstrumentConfigForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,14 @@ export default {
}
},
'instrumentConfig.mode': function(value) {
if ("extra_params" in this.instrumentConfig) {
delete this.instrumentConfig.extra_params.bin_x
delete this.instrumentConfig.extra_params.bin_y
}
this.badFilterReadoutMode = false;
if (this.selectedInstrument === '1M0-SCICAM-SINISTRO') {
if (value === 'central_2k_2x2') {
if (_.includes(['u', 'b', 'v', 'r', 'i'], this.instrumentConfig.optical_elements.filter)) {
if (_.includes(['u', 'b', 'v', 'r', 'i'], this.instrumentConfig.optical_elements.filter.toLowerCase())) {
this.badFilterReadoutMode = true;
}
}
Expand Down

0 comments on commit cb072f0

Please sign in to comment.