Skip to content

Commit

Permalink
SFH_GetNumericRangeFromEpoc: Rename epochNames
Browse files Browse the repository at this point in the history
  • Loading branch information
t-b committed Feb 5, 2024
1 parent 329c9e1 commit 912be6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Packages/MIES/MIES_SweepFormula_Helpers.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1351,16 +1351,16 @@ Function [WAVE adaptedRange, WAVE/T epochRangeNames] SFH_GetNumericRangeFromEpoc
return [adaptedRange, $""]
endif

WAVE/T epochNames = range
SFH_ASSERT(IsTextWave(epochNames) && !DimSize(epochNames, COLS), "Expected 1d text wave for epoch specification")
WAVE/T epochPatterns = range
SFH_ASSERT(IsTextWave(epochPatterns) && !DimSize(epochPatterns, COLS), "Expected 1d text wave for epoch specification")

WAVE/T/Z epochInfo = EP_GetEpochs(numericalValues, textualValues, sweepNo, chanType, chanNr, allEpochsRegex)
if(!WaveExists(epochInfo))
return [$"", $""]
endif

WAVE/T allEpNames = SFH_GetEpochNamesFromInfo(epochInfo)
WAVE/Z epIndices = SFH_GetEpochIndicesByWildcardPatterns(allEpNames, epochNames)
WAVE/Z epIndices = SFH_GetEpochIndicesByWildcardPatterns(allEpNames, epochPatterns)
if(!WaveExists(epIndices))
return [$"", $""]
endif
Expand Down

0 comments on commit 912be6e

Please sign in to comment.