diff --git a/src/calng/corrections/PnccdCorrection.py b/src/calng/corrections/PnccdCorrection.py index d3563c5c47a75990c541c838f40ef7405466eff4..cfadb76bfb9f22391c1cecd49b77ee1d7fb9d709 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")