Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-b committed Dec 18, 2024
1 parent 62132b0 commit cfcafbb
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions Packages/tests/Basic/UTF_SweepFormula_PSX.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -651,20 +651,25 @@ static Function FillEventWave_IGNORE(WAVE psxEvent, string id, string comboKey)

variable jsonID

CHECK_EQUAL_VAR(DimSize(psxEvent, COLS), 17) // test needs update if that fails

psxEvent[][%index] = p
psxEvent[][%deconvpeak_t] = 100 * p
psxEvent[][%deconvpeak] = NaN
psxEvent[][%peak] = NaN
psxEvent[][%peak_t] = -10 * p
psxEvent[][%baseline] = NaN
psxEvent[][%baseline_t] = NaN
psxEvent[][%amplitude] = p == 0 ? NaN : 10 * p
psxEvent[][%iei] = 1000 * p
psxEvent[][%tau] = 1e-6 * p
psxEvent[][%$"Rise Time"] = p == 0 ? NaN : 0.1 * p
// TODO fill new entries
INFO("Check that the size of psxEvent is what we expect")

CHECK_EQUAL_VAR(DimSize(psxEvent, COLS), 17)

psxEvent[][%index] = p
psxEvent[][%deconvpeak_t] = 100 * p
psxEvent[][%deconvpeak] = NaN
psxEvent[][%peak] = NaN
psxEvent[][%peak_t] = -10 * p
psxEvent[][%baseline] = NaN
psxEvent[][%baseline_t] = NaN
psxEvent[][%amplitude] = p == 0 ? NaN : 10 * p
psxEvent[][%iei] = 1000 * p
psxEvent[][%tau] = 1e-6 * p
psxEvent[][%$"Rise Time"] = p == 0 ? NaN : 0.1 * p
psxEvent[][%$"Onset Time"] = p == 0 ? NaN : 0.2 * p
psxEvent[][%$"Slew Rate"] = NaN
psxEvent[][%$"Slew Rate Time"] = p == 0 ? NaN : 200 * p

// PSX_ACCEPT:1
// PSX_REJECT:2
// PSX_UNDET: 4
Expand Down

0 comments on commit cfcafbb

Please sign in to comment.