From 12e46f1dc5e51170973834f702e0e50e712dd6b5 Mon Sep 17 00:00:00 2001 From: Joey Chatelain Date: Mon, 16 Dec 2024 15:33:34 -0800 Subject: [PATCH] remove binning extra params when changing modes --- src/components/InstrumentConfigForm.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/InstrumentConfigForm.vue b/src/components/InstrumentConfigForm.vue index 0ae924a..44c2392 100644 --- a/src/components/InstrumentConfigForm.vue +++ b/src/components/InstrumentConfigForm.vue @@ -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; } }