-
Notifications
You must be signed in to change notification settings - Fork 40
New feature: phaseslope_max #352
New feature: phaseslope_max #352
Conversation
…validation-features Conflicts: efel/pyfeatures/pyfeatures.py
efel/pyfeatures/pyfeatures.py
Outdated
phaseslope = diff(voltage) / diff(time) | ||
phaseslope_max = max(phaseslope) | ||
|
||
if phaseslope_max.size == 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this check won't work as intended because phaseslope_max is a scalar. I think this check should be performed before computing the max
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with a try/except in latest commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! looks great! nice that you switched to numpy.max ;)
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #352 +/- ##
==========================================
+ Coverage 66.04% 66.07% +0.03%
==========================================
Files 33 33
Lines 6446 6459 +13
Branches 2279 2279
==========================================
+ Hits 4257 4268 +11
- Misses 265 267 +2
Partials 1924 1924 ☔ View full report in Codecov by Sentry. |
Pull Request Template
Description
New feature: phaseslope_max. To compute the maximum of the (positive) derivative of voltage. Note that this is sensible to interpolation timestep.
Checklist: