AllenInstitute/MIES

oodDAQ often cuts off one more point off of the trailing baseline

Closed this issue · 0 comments

FindLevel is used to find a decreasing level crossing at 1E-3. This location in V_levelX is typically a little left of the (typical) zero.
As Redimension uses a trunc for the size argument one point too much is cut off.
Recommended fix: Use round(V_levelX)

I am not sure if that change would break some backward compatibility.

FindLevel/P/EDGE=2/Q/R=[DimSize(acc, ROWS) - 1, 0] acc, level
if(!V_flag && acc[length - 1] < level)
cutoff = V_levelX + params.postFeaturePoints
Redimension/N=(cutoff) acc