Skip to content

Commit

Permalink
Merge pull request #2018 from AllenInstitute/bugfix/2018-rheobase-das…
Browse files Browse the repository at this point in the history
…hboard-passing-failing-sweeps

AD_FillWaves: Fix calculation of failed sweeps for Rheobase
  • Loading branch information
timjarsky authored Feb 23, 2024
2 parents 8669102 + 4abcfd9 commit dd1d93a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Packages/MIES/MIES_AnalysisFunctions_Dashboard.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ static Function AD_FillWaves(win, list, info)
lastValid = DimSize(spikeDetection, ROWS) - 1
ASSERT(Sum(spikeDetection, firstValid, lastValid) == 1, "Unexpected spike/non-spike duo")
Duplicate/FREE/R=[firstValid, lastValid] sweeps, passingSweeps
Duplicate/FREE/R=[0, firstValid - 1] sweeps, failingSweeps
WAVE/Z failingSweeps = GetSetDifference(sweeps, passingSweeps)
else
Duplicate/FREE sweeps, failingSweeps
WAVE/Z passingSweeps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static Function PS_RB4_REENTRY([str])

variable sweepNo, setPassed, i, numEntries, onsetDelay
variable initialDAScale, stepsize
string key
string key, browser

WAVE numericalValues = GetLBNumericalValues(str)

Expand Down Expand Up @@ -473,6 +473,19 @@ static Function PS_RB4_REENTRY([str])

CommonAnalysisFunctionChecks(str, sweepNo, {setPassed})
CheckPSQChunkTimes(str, {20, 520, 1023, 1523})

// check passing/failing sweeps
browser = DB_FindDataBrowser(str)
CHECK_PROPER_STR(browser)

DFREF dfr = BSP_GetFolder(browser, MIES_BSP_PANEL_FOLDER)

WAVE/T listWave = GetAnaFuncDashboardListWave(dfr)
CHECK_EQUAL_VAR(GetNumberFromWaveNote(listWave, NOTE_INDEX), 1)

WAVE/T infoWave = GetAnaFuncDashboardInfoWave(dfr)
CHECK_EQUAL_STR(infoWave[0][%$"Passing Sweeps"], "0;1;")
CHECK_EQUAL_STR(infoWave[0][%$"Failing Sweeps"], "")
End

static Function PS_RB5_preAcq(string device)
Expand Down

0 comments on commit dd1d93a

Please sign in to comment.