From 1f8ca0c3999f66a5c6cfda6195df5b12030aea59 Mon Sep 17 00:00:00 2001 From: Michael Huth Date: Wed, 26 Jul 2023 02:55:04 +0200 Subject: [PATCH] EP: Remove unnecessary code in EP_GetEpochs - EP_FetchEpochs always returns a single channel epochs wave, thus, not Duplicate to create a single channel wave is required. No functional change --- Packages/MIES/MIES_Epochs.ipf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Packages/MIES/MIES_Epochs.ipf b/Packages/MIES/MIES_Epochs.ipf index 764502dc3a..b375736d88 100644 --- a/Packages/MIES/MIES_Epochs.ipf +++ b/Packages/MIES/MIES_Epochs.ipf @@ -926,14 +926,12 @@ Function/WAVE EP_GetEpochs(WAVE numericalValues, WAVE textualValues, variable sw endif if(!midsweep) - WAVE/T/Z epochInfo = EP_FetchEpochs(numericalValues, textualValues, sweepNo, channelNumber, channelType) - - if(!WaveExists(epochInfo)) + WAVE/T/Z epochInfoChannel = EP_FetchEpochs(numericalValues, textualValues, sweepNo, channelNumber, channelType) + if(!WaveExists(epochInfoChannel)) return $"" endif - Duplicate/FREE/T/RMD=[][][][channelType] epochInfo, epochInfoChannel - epochCnt = DimSize(epochInfo, ROWS) + epochCnt = DimSize(epochInfoChannel, ROWS) else epochCnt = EP_GetEpochCount(epochsWave, channelNumber, channelType)