Skip to content

Commit

Permalink
SFH_NewSelectDataWave: Initialize wave to NaN
Browse files Browse the repository at this point in the history
This avoids having invalid data in there.

Missed in the initial implementation in abe808f (SF: Add select
operation to select sweeps for data, adapted data operation, 2022-02-04).
  • Loading branch information
t-b committed Oct 15, 2024
1 parent 528f1f3 commit 6bdda34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/MIES/MIES_SweepFormula_Helpers.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bdda34

Please sign in to comment.