Skip to content

Commit

Permalink
Fix saving values for Infinity and Capacitance BCs
Browse files Browse the repository at this point in the history
  • Loading branch information
HoWilgh authored and berndhahnebach committed Feb 22, 2020
1 parent 3afa603 commit f433915
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -148,3 +148,11 @@ def _applyWidgetChanges(self):
if quantity is not None:
self._obj.Potential = float(quantity.getValueAs(unit))
self._obj.PotentialConstant = self._paramWidget.potentialConstantBox.isChecked()

self._obj.ElectricInfinity = self._paramWidget.electricInfinityBox.isChecked()

self._obj.CapacitanceBodyEnabled = \
not self._paramWidget.capacitanceBodyBox.isChecked()
if self._obj.CapacitanceBodyEnabled:
self._paramWidget.capacitanceBody_spinBox.setEnabled(True)
self._obj.CapacitanceBody = self._paramWidget.capacitanceBody_spinBox.value()

0 comments on commit f433915

Please sign in to comment.