Skip to content

Commit 8c396cc

Browse files
committed
Added tests
1 parent c56006a commit 8c396cc

27 files changed

+570
-0
lines changed

tests/__init__.py

Whitespace-only changes.

tests/data/tempo.DSC

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
#DESC 1.2 * DESCRIPTOR INFORMATION ***********************
2+
*
3+
* Dataset Type and Format:
4+
*
5+
DSRC EXP
6+
BSEQ BIG
7+
IKKF REAL
8+
XTYP IDX
9+
YTYP NODATA
10+
ZTYP NODATA
11+
*
12+
* Item Formats:
13+
*
14+
IRFMT D
15+
*
16+
* Data Ranges and Resolutions:
17+
*
18+
XPTS 2048
19+
XMIN 3259.750000
20+
XWID 130.136426
21+
*
22+
* Documentational Text:
23+
*
24+
TITL 'tempo'
25+
IRNAM 'Intensity'
26+
XNAM 'Field'
27+
IRUNI ''
28+
XUNI 'G'
29+
*
30+
************************************************************
31+
*
32+
#SPL 1.2 * STANDARD PARAMETER LAYER
33+
*
34+
OPER xuser
35+
DATE 12/03/20
36+
TIME 10:57:45
37+
CMNT
38+
SAMP
39+
SFOR
40+
STAG C
41+
EXPT CW
42+
OXS1 IADC
43+
AXS1 B0VL
44+
AXS2 NONE
45+
AXS3
46+
A1CT 0.332485
47+
A1SW 0.01302
48+
MWFQ 9.327654e+09
49+
MWPW 0.002
50+
AVGS 109
51+
SPTP 0.03
52+
RCAG 60
53+
RCHM 1
54+
B0MA 4e-05
55+
B0MF 100000
56+
RCPH 0.0
57+
RCOF 0.0
58+
A1RS 2048
59+
RCTC 0
60+
*
61+
************************************************************
62+
*
63+
#DSL 1.0 * DEVICE SPECIFIC LAYER
64+
*
65+
66+
.DVC acqStart, 1.0
67+
68+
69+
.DVC fieldCtrl, 1.0
70+
71+
AllegroMode True
72+
CenterField 3324.85 G
73+
Delay 0.0 s
74+
FieldFlyback On
75+
FieldWait Wait LED off
76+
GFactor 2.000000
77+
MeasuringHall False
78+
SetToSampleG False
79+
StaticFieldMon 3480.000 G
80+
SweepDirection Up
81+
SweepWidth 130.2 G
82+
WidthTM 200.0 G
83+
84+
.DVC fieldSweep, 1.0
85+
86+
87+
.DVC freqCounter, 1.0
88+
89+
FrequencyMon 9.327654 GHz
90+
QMonitBridge On
91+
92+
.DVC mwBridge, 1.0
93+
94+
AcqFineTuning Never
95+
AcqScanFTuning Off
96+
AcqSliceFTuning Off
97+
BridgeCalib 60.0
98+
Power 2.000 mW
99+
PowerAtten 20.0 dB
100+
101+
.DVC recorder, 1.0
102+
103+
BaselineCorr Off
104+
NbScansAcc 109
105+
NbScansDone 109
106+
NbScansToDo 200
107+
ReplaceMode Off
108+
SmoothMode Manual
109+
SmoothPoints 1
110+
111+
.DVC scanEnd, 1.0
112+
113+
114+
.DVC signalChannel, 1.0
115+
116+
AFCTrap True
117+
AllegroMode True
118+
AllowShortCt False
119+
Calibrated True
120+
ConvTime 30.00 ms
121+
DModDetectSCT First
122+
DoubleModAcc 1
123+
DoubleModFreq 5.000 kHz
124+
DoubleMode False
125+
DualDetect OFF
126+
EliDelay 1.0 us
127+
Enable1stHarm True
128+
Enable1stHarm90 False
129+
Enable2ndHarm False
130+
Enable2ndHarm90 False
131+
Enable3rdHarm False
132+
Enable3rdHarm90 False
133+
Enable4thHarm False
134+
Enable4thHarm90 False
135+
Enable5thHarm False
136+
Enable5thHarm90 False
137+
EnableDisp False
138+
EnableImag Disable
139+
ExtLockIn False
140+
ExtTrigger False
141+
Gain 60 dB
142+
GainB 60 dB
143+
Harmonic 1
144+
HighPass True
145+
InputPlugA AC3
146+
InputPlugB AC3
147+
Integrator False
148+
IsCalibExp False
149+
ModAmp 0.400 G
150+
ModFreq 100.00 kHz
151+
ModPhase 0.0
152+
Offset 0.0 %
153+
QuadMode False
154+
Resolution 2048
155+
Resonator 1
156+
SctNorm True
157+
SctRevision Allegro
158+
SetAllOrd False
159+
SetOrdDef False
160+
SpuExtension True
161+
SpuRevision MultiHarmonic
162+
SweepTime 61.44000 s
163+
TimeConst 0
164+
TimeExp False
165+
TuneCaps 45
166+
dModSW True
167+
168+
*
169+
************************************************************

tests/data/tempo.DTA

16 KB
Binary file not shown.

tests/data/tempo_time.DSC

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
#DESC 1.2 * DESCRIPTOR INFORMATION ***********************
2+
*
3+
* Dataset Type and Format:
4+
*
5+
DSRC EXP
6+
BSEQ BIG
7+
IKKF REAL
8+
XTYP IDX
9+
YTYP IGD
10+
ZTYP NODATA
11+
*
12+
* Item Formats:
13+
*
14+
IRFMT D
15+
YFMT D
16+
*
17+
* Data Ranges and Resolutions:
18+
*
19+
XPTS 1024
20+
XMIN 3273.650000
21+
XWID 98.803418
22+
YPTS 48
23+
YMIN 0.000000
24+
YWID 72031.990000
25+
*
26+
* Documentational Text:
27+
*
28+
TITL 'tempo_time'
29+
IRNAM 'Intensity'
30+
XNAM 'Field'
31+
YNAM 'Time'
32+
IRUNI ''
33+
XUNI 'G'
34+
YUNI 's'
35+
*
36+
************************************************************
37+
*
38+
#SPL 1.2 * STANDARD PARAMETER LAYER
39+
*
40+
OPER xuser
41+
DATE 11/04/21
42+
TIME 10:46:52
43+
CMNT
44+
SAMP
45+
SFOR
46+
STAG C
47+
EXPT CW
48+
OXS1 IADC
49+
AXS1 B0VL
50+
AXS2 ETIM
51+
AXS3
52+
A2RS 48
53+
A1CT 0.33231
54+
A1SW 0.00989
55+
MWFQ 9.331e+09
56+
MWPW 0.0006325
57+
AVGS 25
58+
SPTP 0.0586
59+
RCAG 42
60+
RCHM 1
61+
B0MA 5e-05
62+
B0MF 100000
63+
RCPH 0.0
64+
RCOF 0.0
65+
A1RS 1024
66+
RCTC 0
67+
*
68+
************************************************************
69+
*
70+
#DSL 1.0 * DEVICE SPECIFIC LAYER
71+
*
72+
73+
.DVC acqStart, 1.0
74+
75+
76+
.DVC delay, 1.0
77+
78+
Delay 200 ms
79+
NbPoints 48
80+
81+
.DVC fieldCtrl, 1.0
82+
83+
AllegroMode True
84+
CenterField 3323.10 G
85+
Delay 0.0 s
86+
FieldFlyback On
87+
FieldWait Wait LED off
88+
GFactor 2.006000
89+
MeasuringHall False
90+
SetToSampleG False
91+
StaticFieldMon 3322.800 G
92+
SweepDirection Up
93+
SweepWidth 98.9 G
94+
WidthTM 200.0 G
95+
96+
.DVC fieldSweep, 1.0
97+
98+
99+
.DVC freqCounter, 1.0
100+
101+
FrequencyMon 9.331000 GHz
102+
QMonitBridge On
103+
104+
.DVC mwBridge, 1.0
105+
106+
AcqFineTuning Never
107+
AcqScanFTuning Off
108+
AcqSliceFTuning Off
109+
BridgeCalib 60.0
110+
Power 0.6325 mW
111+
PowerAtten 25.0 dB
112+
113+
.DVC recorder, 1.0
114+
115+
BaselineCorr Off
116+
NbScansAcc 25
117+
NbScansDone 25
118+
NbScansToDo 25
119+
ReplaceMode Off
120+
SmoothMode Manual
121+
SmoothPoints 1
122+
123+
.DVC scanEnd, 1.0
124+
125+
126+
.DVC signalChannel, 1.0
127+
128+
AFCTrap True
129+
AllegroMode True
130+
AllowShortCt False
131+
Calibrated True
132+
ConvTime 58.60 ms
133+
DModDetectSCT First
134+
DoubleModAcc 1
135+
DoubleModFreq 5.000 kHz
136+
DoubleMode False
137+
DualDetect OFF
138+
EliDelay 1.0 us
139+
Enable1stHarm True
140+
Enable1stHarm90 False
141+
Enable2ndHarm False
142+
Enable2ndHarm90 False
143+
Enable3rdHarm False
144+
Enable3rdHarm90 False
145+
Enable4thHarm False
146+
Enable4thHarm90 False
147+
Enable5thHarm False
148+
Enable5thHarm90 False
149+
EnableDisp False
150+
EnableImag Disable
151+
ExtLockIn False
152+
ExtTrigger False
153+
Gain 42 dB
154+
GainB 42 dB
155+
Harmonic 1
156+
HighPass True
157+
InputPlugA AC3
158+
InputPlugB AC3
159+
Integrator False
160+
IsCalibExp False
161+
ModAmp 0.500 G
162+
ModFreq 100.00 kHz
163+
ModPhase 0.0
164+
Offset 0.0 %
165+
QuadMode False
166+
Resolution 1024
167+
Resonator 1
168+
SctNorm True
169+
SctRevision Allegro
170+
SetAllOrd False
171+
SetOrdDef False
172+
SpuExtension True
173+
SpuRevision MultiHarmonic
174+
SweepTime 60.00640 s
175+
TimeConst 0
176+
TimeExp False
177+
TuneCaps 45
178+
dModSW True
179+
180+
*
181+
************************************************************

tests/data/tempo_time.DTA

384 KB
Binary file not shown.

tests/data/tempo_time.YGF

384 Bytes
Binary file not shown.

tests/data/test_default2d_bc.npy

384 KB
Binary file not shown.

tests/data/test_default_bc.npy

16.1 KB
Binary file not shown.

tests/data/test_get_dim_array.npy

16.1 KB
Binary file not shown.

tests/data/test_integral.npy

16.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)