Skip to content

Commit

Permalink
PSQ_DS_GetValuesOfLargestAPFreq: Only fetch passing data
Browse files Browse the repository at this point in the history
It makes no difference from the behaviour because we are only called if
the sweep passed and we have no futureDAScale values, but it makes the
code easier to grasp.
  • Loading branch information
t-b committed Sep 3, 2024
1 parent 2606254 commit 63b05d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -3210,13 +3210,13 @@ static Function [variable fitOffset, variable fitSlope, variable DAScale, variab

variable emptySCI, offset, i, numEntries, maxValue, maxLoc

[WAVE apfreqAll, emptySCI] = PSQ_DS_GetLabnotebookData(device, sweepNo, headstage, PSQ_DS_APFREQ)
[WAVE apfreqAll, emptySCI] = PSQ_DS_GetLabnotebookData(device, sweepNo, headstage, PSQ_DS_APFREQ, filterPassing = 1)
ASSERT(!emptySCI, "Unexpected emptySCI")
[WAVE fitSlopeAll, emptySCI] = PSQ_DS_GetLabnotebookData(device, sweepNo, headstage, PSQ_DS_FI_SLOPE)
[WAVE fitSlopeAll, emptySCI] = PSQ_DS_GetLabnotebookData(device, sweepNo, headstage, PSQ_DS_FI_SLOPE, filterPassing = 1)
ASSERT(!emptySCI, "Unexpected emptySCI")
[WAVE fitOffsetAll, emptySCI] = PSQ_DS_GetLabnotebookData(device, sweepNo, headstage, PSQ_DS_FI_OFFSET)
[WAVE fitOffsetAll, emptySCI] = PSQ_DS_GetLabnotebookData(device, sweepNo, headstage, PSQ_DS_FI_OFFSET, filterPassing = 1)
ASSERT(!emptySCI, "Unexpected emptySCI")
[WAVE DAScaleAll, emptySCI] = PSQ_DS_GetLabnotebookData(device, sweepNo, headstage, PSQ_DS_DASCALE)
[WAVE DAScaleAll, emptySCI] = PSQ_DS_GetLabnotebookData(device, sweepNo, headstage, PSQ_DS_DASCALE, filterPassing = 1)
ASSERT(!emptySCI, "Unexpected emptySCI")

// get the largest value with the highest index
Expand Down

0 comments on commit 63b05d5

Please sign in to comment.