Skip to content

Commit

Permalink
Actually store correct area midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleAalbers committed Mar 9, 2017
1 parent 6bedc49 commit 505730f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pax/plugins/peak_processing/BasicProperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def transform_event(self, event):
area_times = np.ones(21) * float('nan')
integrate_until_fraction(w, fractions_desired=np.linspace(0, 1, 21), results=area_times)
area_times *= dt
peak.area_midpoint = area_midpoint = area_times[10]
area_midpoint = area_times[10]

# Before storing area midpoint, convert to time in event
peak.area_midpoint = area_midpoint + peak.left * dt

# Store widths and rise times
peak.range_area_decile = area_times[10:] - area_times[10::-1]
Expand Down

0 comments on commit 505730f

Please sign in to comment.