Skip to content

Commit

Permalink
WIP: PSX
Browse files Browse the repository at this point in the history
  • Loading branch information
t-b authored and MichaelHuth committed Oct 9, 2024
1 parent 4f862ba commit 5e73286
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Packages/MIES/MIES_SweepFormula_PSX.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,7 @@ static Function/WAVE PSX_OperationStatsImpl(string graph, string id, WAVE/WAVE r

for(k = 0; k < numCols; k += 1)

// TODO TB
[chanNr, chanType, sweepNo] = PSX_GetSweepEquivKeyAndSweep(selectDataEquiv, i, k)

if(!IsValidSweepNumber(sweepNo))
Expand Down Expand Up @@ -2944,16 +2945,17 @@ End
/// to the wave note of `psxEvent`.
static Function/S PSX_GenerateComboKey(string graph, WAVE selectData, WAVE range)

variable sweepNo, channel, chanType
variable sweepNo, channel, chanType, mapIndex
string device, key, datafolder, rangeStr

ASSERT(DimSize(selectData, ROWS) == 1, "Expected selectData with only one entry")

sweepNo = selectData[0][%SWEEP]
channel = selectData[0][%CHANNELNUMBER]
chanType = selectData[0][%CHANNELTYPE]
mapIndex = selectData[0][%SWEEPMAPINDEX]

WAVE/T textualValues = BSP_GetLogbookWave(graph, LBT_LABNOTEBOOK, LBN_TEXTUAL_VALUES, sweepNumber = sweepNo)
[WAVE numericalValues, WAVE textualValues] = SFH_GetLabNoteBooksForSweep(graph, sweepNo, mapIndex)

// Introduced in 7e903ed8 (GetSweepSettingsTextWave: Add device as entry, 2023-01-03)
device = GetLastSettingTextIndep(textualValues, sweepNo, "Device", DATA_ACQUISITION_MODE)
Expand Down

0 comments on commit 5e73286

Please sign in to comment.