Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-b committed Dec 19, 2024
1 parent 5ee14a0 commit 0b81d14
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Packages/tests/Basic/UTF_SweepFormula_PSX.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ Function/WAVE StatsTest_GetInput()
input[%state] = "undetermined"
input[%postProc] = "hist"

JWN_SetWaveInWaveNote(input, "/results", {1, 2})
JWN_SetWaveInWaveNote(input, "/results", {2, 1})
// no xValues
JWN_SetWaveInWaveNote(input, "/marker", {PSX_MARKER_UNDET, PSX_MARKER_UNDET})

Expand All @@ -788,8 +788,8 @@ Function/WAVE StatsTest_GetInput()
input[%state] = "undetermined"
input[%postProc] = "log10"

JWN_SetWaveInWaveNote(input, "/results", {NaN, log(600 - 200), log(900 - 600)})
JWN_SetWaveInWaveNote(input, "/xValues", {2, 6, 9})
JWN_SetWaveInWaveNote(input, "/results", {log(600 - 200), log(900 - 600), NaN})
JWN_SetWaveInWaveNote(input, "/xValues", {6, 9, 3})
JWN_SetWaveInWaveNote(input, "/marker", {PSX_MARKER_UNDET, PSX_MARKER_UNDET, PSX_MARKER_UNDET})

// wv8
Expand All @@ -804,7 +804,7 @@ Function/WAVE StatsTest_GetInput()
JWN_SetWaveInWaveNote(input, "/xValues", {1, 3, 5, 7, 9})
JWN_SetWaveInWaveNote(input, "/marker", {PSX_MARKER_UNDET, PSX_MARKER_UNDET, PSX_MARKER_UNDET, PSX_MARKER_UNDET, PSX_MARKER_UNDET})

// wv8
// wv9
Duplicate/FREE/T template, wv9
WAVE/T input = wv9

Expand Down Expand Up @@ -876,7 +876,7 @@ static Function StatsWorksWithResults([STRUCT IUTF_mData &m])

if(!cmpstr(postProc, "nonfinite"))
// overwrite peak_t data
Make/FREE/D peak_t = {10, NaN, 20, -Inf, 30, +Inf, 40, NaN, 50, -Inf}
Make/FREE/D peak_t = {10, 110, 20, -Inf, 30, +Inf, 40, NaN, 50, -Inf}
psxEvent[][%peak_t] = peak_t[p]
endif

Expand Down Expand Up @@ -1573,7 +1573,7 @@ static Function CheckEventDataHelper(WAVE/Z/WAVE dataWref, variable index, varia
CHECK_EQUAL_VAR(Sum(comp), numEvents)

comp = sign(psxEvent[p][%$"Rise Time"])
CHECK_EQUAL_VAR(Sum(comp), 0)
CHECK_EQUAL_VAR(Sum(comp), numEvents)

WaveStats/M=0/Q psxEvent
CHECK_EQUAL_VAR(V_numInfs, 0)
Expand All @@ -1582,9 +1582,9 @@ static Function CheckEventDataHelper(WAVE/Z/WAVE dataWref, variable index, varia

// 1 NaN for the first event only, the rest is onset Time
if(kernelAmpSign == 1)
CHECK_EQUAL_VAR(V_numNaNs, 3)
CHECK_EQUAL_VAR(V_numNaNs, 1)
elseif(kernelAmpSign == -1)
CHECK_EQUAL_VAR(V_numNaNs, 5)
CHECK_EQUAL_VAR(V_numNaNs, 9)
else
FAIL()
endif
Expand Down

0 comments on commit 0b81d14

Please sign in to comment.