Skip to content

Commit

Permalink
Adjust amplitude use in_target for HyperDepol
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jul 13, 2021
1 parent 6ee0494 commit eebf49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluepyefe/ecode/HyperDePol.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def compute_relative_amp(self, amp_threshold):
def in_target(self, target, tolerance):
"""Returns a boolean. True if the amplitude of the eCode is close to
target and False otherwise."""
if numpy.abs(target - self.amp2_rel) < tolerance:
if numpy.abs(target - self.amp_rel) < tolerance:
return True
else:
return False

0 comments on commit eebf49c

Please sign in to comment.