Skip to content

Commit

Permalink
Update pedigree plot when loc field is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdekoning committed Jan 22, 2020
1 parent 3988fc1 commit 3a119e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions activity_browser/app/ui/wizards/uncertainty.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,7 @@ def check_negative(self) -> None:

def initializePage(self) -> None:
self.distribution_selection()
# Set the mean field if the loc field is not empty.
if self.loc.text():
self.mean.setText(str(np.exp(float(self.loc.text()))))
self.balance_mean_with_loc()

def nextId(self) -> int:
if self.goto_pedigree:
Expand Down Expand Up @@ -512,6 +510,7 @@ def pedigree(self, data: dict) -> None:

@Slot(name="locToMean")
def balance_mean_with_loc(self):
self.setField("loc", self.loc.text())
if self.loc.text():
self.mean.setText(str(np.exp(float(self.loc.text()))))

Expand Down

0 comments on commit 3a119e0

Please sign in to comment.