Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-b committed Nov 15, 2023
1 parent f387b3e commit 7082022
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,7 @@ static Function PSQ_CheckSamplingFrequencyAndStoreInLabnotebook(string device, v
return samplingFrequencyPassed
End

/// @todo docu
static Function [WAVE apfreq, WAVE DaScale] PSQ_DS_GatherFrequencyCurrentData(string device, variable headstage, WAVE sweeps, variable sweepNo)

variable DAC, ADC
Expand Down Expand Up @@ -1836,6 +1837,7 @@ static Function [WAVE apfreq, WAVE DaScale] PSQ_DS_GatherFrequencyCurrentData(st
return [apfreq, DaScale]
End

/// @todo docu
static Function [WAVE fitOffset, WAVE fitSlope] PSQ_DS_EvaluateFrequencyCurrentData(string device, variable sweepNo, WAVE apfreq, WAVE DAScales, variable numPointsForLineFit)

variable i, numPoints, numFits, first, last, hasEnoughPoints, initialFit
Expand Down Expand Up @@ -1928,6 +1930,7 @@ static Function [WAVE fitOffset, WAVE fitSlope] PSQ_DS_EvaluateFrequencyCurrentD
return [fitOffset, fitSlope]
End

/// @todo docu
static Function PSQ_DS_CheckFitResults(string device, variable sweepNo, variable headstage, WAVE fitOffset, WAVE fitSlope, [variable fromSupra])

variable numFits, validFit
Expand Down Expand Up @@ -2029,6 +2032,7 @@ Function PSQ_DS_CalculateDAScale(variable a, variable m, variable y, variable c)
return xp
End

/// @todo docu
static Function PSQ_DS_EvaluateAdaptiveThresholdSweep(string device, variable sweepNo, variable headstage, variable numPointsForLineFit, variable slopePercentage)

string key
Expand Down Expand Up @@ -2131,6 +2135,7 @@ static Function PSQ_DS_EvaluateAdaptiveThresholdSweep(string device, variable sw
return !reachedFinalSlope
End

/// @todo docu
static Function PSQ_DS_AdaptiveMeasuredAllFutureDAScales(string device, variable sweepNo, variable headstage)

string key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static Function [WAVE apFreqRef, WAVE apfreqFromSupra, WAVE DAScalesFromSupra] E
WAVE/Z overrideResults = GetOverrideResults()
CHECK_WAVE(overrideResults, NUMERIC_WAVE)

Duplicate/FREE/RMD=[0][0, max(0, sweepNo - 1)][FindDimLabel(overrideResults, LAYERS, "APFrequency")] overrideResults, apFreqRef
Duplicate/FREE/RMD=[0][0, sweepNo][FindDimLabel(overrideResults, LAYERS, "APFrequency")] overrideResults, apFreqRef
Redimension/N=(DimSize(apFreqRef, COLS)) apFreqRef

WAVE/Z apfreqFromSupra = JWN_GetNumericWaveFromWaveNote(overrideResults, "/APFrequenciesSupra")
Expand Down Expand Up @@ -308,9 +308,9 @@ static Function PS_DA_AD1_REENTRY([string str])
Make/FREE/D maxSlopeRef = {9.37500146847015e-07,3.12499901156116e-06,1.0850677426788e-05}
Make/FREE/D fiSlopeRef = {9.37500146847015e-07,3.12499901156116e-06,1.0850677426788e-05}
Make/FREE/D fiOffsetRef = {-21.5000076293945,-129.999954223633,-550.27685546875}
Make/FREE/T futureDAScalesRef = {"0.004959999824561;0.005439999961698;", \
"0.004959999824561;0.005439999961698;0.005670400328706;", \
"0.004959999824561;0.005439999961698;0.005670400328706;0.005778227762267;"}
Make/FREE/T futureDAScalesRef = {"0.00495999982456056;0.00543999996169781;", \
"0.00495999982456056;0.00543999996169781;0.00567040032870631;", \
"0.00495999982456056;0.00543999996169781;0.00567040032870631;0.00577822776226742;"}

Make/FREE/D fiSlopesFromSupraRef = {1e-07, 2e-07, 3e-07}
Make/FREE/D fiOffsetsFromSupraRef = {9, 7, 4}
Expand Down

0 comments on commit 7082022

Please sign in to comment.