Skip to content

Commit 2cfffbe

Browse files
committed
PSQ_DAScale (Adapt): Return always a copy of the waves for PSQ_DS_FilterFrequencyCurrentData
1 parent 329b0a0 commit 2cfffbe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,10 @@ static Function [WAVE apfreqFiltered, WAVE DAScalesFiltered, WAVE deletedIndizes
21262126
WAVE/Z indizes = FindNeighbourWithPredicate(apfreq, EqualValuesOrBothNaN)
21272127

21282128
if(!WaveExists(indizes))
2129-
return [apfreq, DAScales, $"", numPoints]
2129+
Duplicate/FREE apfreq, apreqFiltered
2130+
Duplicate/FREE DAScales, DAScalesFiltered
2131+
2132+
return [apreqFiltered, DAScalesFiltered, $"", numPoints]
21302133
endif
21312134

21322135
if(DimSize(indizes, ROWS) == (numPoints - 1))

0 commit comments

Comments
 (0)