Skip to content

Commit

Permalink
remove binning extra params when changing modes
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Dec 16, 2024
1 parent 0cb914e commit 12e46f1
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 12e46f1

Please sign in to comment.