From 6bdda347b4679e8264fd613d4e3c3952a2bbaa8d Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Mon, 14 Oct 2024 20:55:18 +0200 Subject: [PATCH] SFH_NewSelectDataWave: Initialize wave to NaN This avoids having invalid data in there. Missed in the initial implementation in abe808f5e (SF: Add select operation to select sweeps for data, adapted data operation, 2022-02-04). --- Packages/MIES/MIES_SweepFormula_Helpers.ipf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/MIES/MIES_SweepFormula_Helpers.ipf b/Packages/MIES/MIES_SweepFormula_Helpers.ipf index 053effd894..01813c8d55 100644 --- a/Packages/MIES/MIES_SweepFormula_Helpers.ipf +++ b/Packages/MIES/MIES_SweepFormula_Helpers.ipf @@ -1093,7 +1093,7 @@ Function/WAVE SFH_NewSelectDataWave(variable numSweeps, variable numChannels) ASSERT(numSweeps >= 0 && numChannels >= 0, "Invalid wave size specified") - Make/FREE/D/N=(numSweeps * numChannels, 4) selectData + Make/FREE/D/N=(numSweeps * numChannels, 4) selectData = NaN SetDimLabel COLS, 0, SWEEP, selectData SetDimLabel COLS, 1, CHANNELTYPE, selectData SetDimLabel COLS, 2, CHANNELNUMBER, selectData