diff --git a/bluepyefe/ecode/HyperDePol.py b/bluepyefe/ecode/HyperDePol.py index 3bbd1eeb..402c6b15 100644 --- a/bluepyefe/ecode/HyperDePol.py +++ b/bluepyefe/ecode/HyperDePol.py @@ -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