Skip to content

Commit 85d599e

Browse files
MichaelHutht-b
authored andcommitted
SF: Use for GetUniqueEntries the dontDuplicate option
- this gives a speeds boost if the input wave has only a single element
1 parent 4a9060b commit 85d599e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Packages/MIES/MIES_SweepFormula.ipf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ static Function/WAVE SF_GetReducedColumn(WAVE w, string dimLabel)
12591259
Duplicate/FREE/RMD=[][dimPos] w, wTmp
12601260
Redimension/N=(-1) wTmp
12611261

1262-
WAVE wReduced = GetUniqueEntries(wTmp)
1262+
WAVE wReduced = GetUniqueEntries(wTmp, dontDuplicate=1)
12631263

12641264
return wReduced
12651265
End
@@ -1279,7 +1279,7 @@ static Function [WAVE sweeps, WAVE/D channels] SF_ReCreateOldSweepsChannelLayout
12791279

12801280
numSelected = DimSize(selectData, ROWS)
12811281
Make/FREE/D/N=(numSelected) combined = selectData[p][%CHANNELTYPE] << shift + selectData[p][%CHANNELNUMBER]
1282-
WAVE combReduced = GetUniqueEntries(combined)
1282+
WAVE combReduced = GetUniqueEntries(combined, dontDuplicate=1)
12831283

12841284
numCombined = DimSize(combReduced, ROWS)
12851285
WAVE channels = SF_NewChannelsWave(numCombined)

0 commit comments

Comments
 (0)