Skip to content

Commit

Permalink
Fix setting threshold=0 (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
vuolleko committed Apr 5, 2018
1 parent a35290a commit c2b15b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfi/methods/parameter_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def _update_state_meta(self):

def _update_objective_n_batches(self):
# Only in the case that the threshold is used
if not self.objective.get('threshold'):
if self.objective.get('threshold') is None:
return

s = self.state
Expand Down

0 comments on commit c2b15b5

Please sign in to comment.