Skip to content

Commit 68bbd09

Browse files
Copilott-b
andcommitted
Add datafolder reference waves and complex waves to GetEmptyWavesOfAllTypes
Co-authored-by: t-b <[email protected]>
1 parent b13d0c6 commit 68bbd09

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Packages/tests/UTF_DataGenerators.ipf

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ End
20002000
/// This is used for testing IsXXXWave functions with actual wave references
20012001
static Function/WAVE GetEmptyWavesOfAllTypes()
20022002

2003-
Make/FREE/WAVE/N=10 waveRefs
2003+
Make/FREE/WAVE/N=13 waveRefs
20042004

20052005
// Numeric wave types
20062006
Make/FREE/D wvDouble
@@ -2044,5 +2044,20 @@ static Function/WAVE GetEmptyWavesOfAllTypes()
20442044
waveRefs[9] = wvWave
20452045
SetDimLabel ROWS, 9, WAVE_WAVE, waveRefs
20462046

2047+
// Datafolder reference wave
2048+
Make/FREE/DF wvDFRef
2049+
waveRefs[10] = wvDFRef
2050+
SetDimLabel ROWS, 10, DFREF_WAVE, waveRefs
2051+
2052+
// Complex waves (double precision complex)
2053+
Make/FREE/D/C wvComplexDouble
2054+
waveRefs[11] = wvComplexDouble
2055+
SetDimLabel ROWS, 11, $"NT_FP64 | NT_COMPLEX", waveRefs
2056+
2057+
// Complex waves (single precision complex)
2058+
Make/FREE/R/C wvComplexSingle
2059+
waveRefs[12] = wvComplexSingle
2060+
SetDimLabel ROWS, 12, $"NT_FP32 | NT_COMPLEX", waveRefs
2061+
20472062
return waveRefs
20482063
End

0 commit comments

Comments
 (0)