Skip to content

Commit

Permalink
Merge pull request #159 from AurelienJaquier/sahp-step-detection
Browse files Browse the repository at this point in the history
modify step threshold in step detection of sAHP
  • Loading branch information
AurelienJaquier authored Aug 23, 2023
2 parents c37bf66 + 7e675d2 commit b4aaba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluepyefe/ecode/sAHP.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def step_detection(self, current, config_data, reader_data):

# Set the threshold to detect the step
noise_level = numpy.std(numpy.concatenate((self.current[:50], self.current[-50:])))
step_threshold = numpy.max([4.5 * noise_level, 1e-5])
step_threshold = numpy.max([2.0 * noise_level, 1e-5])

# The buffer prevent miss-detection of the step when artifacts are
# present at the very start or very end of the current trace
Expand Down

0 comments on commit b4aaba0

Please sign in to comment.