Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-b committed Nov 7, 2023
1 parent 8967b18 commit 085be07
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -2804,20 +2804,20 @@ Function PSQ_DAScale(device, s)
endif
endif

sprintf msg, "Fitted Slope: %.0W1P%%\r", fISlope[s.headstage]
DEBUGPRINT(msg)

key = CreateAnaFuncLBNKey(PSQ_DA_SCALE, PSQ_FMT_LBN_DA_fI_SLOPE)
ED_AddEntryToLabnotebook(device, key, fISlope, unit = "% of Hz/pA")

WAVE result = LBN_GetNumericWave()
result[INDEP_HEADSTAGE] = IsFinite(finalSlopePercent) && fiSlope[s.headstage] >= finalSlopePercent
key = CreateAnaFuncLBNKey(PSQ_DA_SCALE, PSQ_FMT_LBN_DA_fI_SLOPE_REACHED)
ED_AddEntryToLabnotebook(device, key, result, unit = LABNOTEBOOK_BINARY_UNIT)

strswitch(opMode)
case PSQ_DS_SUB:
case PSQ_DS_SUPRA:
sprintf msg, "Fitted Slope: %.0W1P%%\r", fISlope[s.headstage]
DEBUGPRINT(msg)

key = CreateAnaFuncLBNKey(PSQ_DA_SCALE, PSQ_FMT_LBN_DA_fI_SLOPE)
ED_AddEntryToLabnotebook(device, key, fISlope, unit = "% of Hz/pA")

WAVE result = LBN_GetNumericWave()
result[INDEP_HEADSTAGE] = IsFinite(finalSlopePercent) && fiSlope[s.headstage] >= finalSlopePercent
key = CreateAnaFuncLBNKey(PSQ_DA_SCALE, PSQ_FMT_LBN_DA_fI_SLOPE_REACHED)
ED_AddEntryToLabnotebook(device, key, result, unit = LABNOTEBOOK_BINARY_UNIT)

ret = PSQ_DetermineSweepQCResults(device, PSQ_DA_SCALE, s.sweepNo, s.headstage, numSweepsPass, inf)

if(ret == PSQ_RESULTS_DONE)
Expand Down

0 comments on commit 085be07

Please sign in to comment.