Skip to content

Commit ca281f2

Browse files
committed
PSX_GetEventFitRange: Change starting position
Requested by Tim Jarsky.
1 parent 853356b commit ca281f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packages/MIES/MIES_SweepFormula_PSX.ipf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -764,17 +764,17 @@ static Function [variable start, variable stop] PSX_GetEventFitRange(WAVE sweepD
764764

765765
variable calcLength, maxLength
766766

767-
start = psxEvent[eventIndex][%deconvPeak_t]
767+
start = psxEvent[eventIndex][%peak_t]
768768

769769
maxLength = PSX_FIT_RANGE_FACTOR * JWN_GetNumberFromWaveNote(psxEvent, SF_META_USER_GROUP + PSX_JWN_PARAMETERS + "/psxKernel/decayTau")
770770

771771
if(eventIndex == (DimSize(psxEvent, ROWS) - 1))
772772
calcLength = maxLength
773773
else
774-
calcLength = min((psxEvent[eventIndex + 1][%deconvPeak_t] - start) * PSX_FIT_RANGE_PERC, maxLength)
774+
calcLength = min((psxEvent[eventIndex + 1][%peak_t] - start) * PSX_FIT_RANGE_PERC, maxLength)
775775
endif
776776

777-
if(calcLength == 0)
777+
if(calcLength <= 0)
778778
calcLength = maxLength
779779
endif
780780

0 commit comments

Comments
 (0)