Skip to content

Commit 7f33e9d

Browse files
committed
PSX_CalculateRiseTime: Return error when xStart is NaN
1 parent b57060e commit 7f33e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/MIES/MIES_SweepFormula_PSX.ipf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ threadsafe static Function [variable riseTime, variable error] PSX_CalculateRise
17701770
variable dY, xlt, xupt, lowerLevel, upperLevel
17711771

17721772
if(IsNaN(xStart))
1773-
return [NaN, 0]
1773+
return [NaN, 1]
17741774
endif
17751775

17761776
dY = abs(yStart - yEnd)

0 commit comments

Comments
 (0)