From b405d5a1356eb22e10c99d321570dcd3e6a7f65b Mon Sep 17 00:00:00 2001 From: David Hammer <dhammer@mailbox.org> Date: Fri, 26 May 2023 17:28:32 +0200 Subject: [PATCH] Call it ignoreBiasVoltage instead --- src/calng/corrections/PnccdCorrection.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/calng/corrections/PnccdCorrection.py b/src/calng/corrections/PnccdCorrection.py index d3563c5c..cfadb76b 100644 --- a/src/calng/corrections/PnccdCorrection.py +++ b/src/calng/corrections/PnccdCorrection.py @@ -82,10 +82,10 @@ class PnccdCalcatFriend(base_calcat.BaseCalcatFriend): ( BOOL_ELEMENT(schema) - .key("constantParameters.useBiasVoltage") - .displayedName("Use bias voltage parameter") + .key("constantParameters.ignoreBiasVoltage") + .displayedName("Ignore bias voltage parameter") .assignmentOptional() - .defaultValue(False) + .defaultValue(True) .reconfigurable() .commit(), @@ -121,7 +121,7 @@ class PnccdCalcatFriend(base_calcat.BaseCalcatFriend): .commit(), ) - managed_keys.add("constantParameters.useBiasVoltage") + managed_keys.add("constantParameters.ignoreBiasVoltage") managed_keys.add("constantParameters.integrationTime") managed_keys.add("constantParameters.gainSetting") managed_keys.add("constantParameters.sourceEnergy") @@ -132,7 +132,7 @@ class PnccdCalcatFriend(base_calcat.BaseCalcatFriend): def dark_condition(self): res = base_calcat.OperatingConditions() res["Memory cells"] = self._get_param("memoryCells") - if self._get_param("useBiasVoltage"): + if not self._get_param("ignoreBiasVoltage"): res["Sensor Bias Voltage"] = self._get_param("biasVoltage") res["Pixels X"] = self._get_param("pixelsX") res["Pixels Y"] = self._get_param("pixelsY") -- GitLab