Skip to content

Commit

Permalink
Merge pull request #43 from alejoe91/hyperdepol_fix
Browse files Browse the repository at this point in the history
Adjust amplitude use in_target for HyperDepol
  • Loading branch information
DrTaDa authored Jul 13, 2021
2 parents 6ee0494 + eebf49c commit 2dced85
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 2dced85

Please sign in to comment.