@@ -49,7 +49,7 @@ def _stop():
49
49
def calibrate_tau (duration_step = 20 ,
50
50
speeds_rpm = [225 , 495 , 945 , 1395 , 1845 , 2205 ],
51
51
forward = True , do_setup = True , stop = True ,
52
- downsample_factor = 8 , filter_disable = False , filter_order = 4 , filter_cutoff = None ):
52
+ downsample_factor = 8 , filter_disable = False , filter_order = None , filter_cutoff = None ):
53
53
"""Time constant calibration using the stimulator.
54
54
55
55
Parameters
@@ -70,7 +70,7 @@ def calibrate_tau(duration_step=20,
70
70
filter_disable : bool, optional
71
71
If True, will disable the downsample filter before streaming. Defaults to True.
72
72
filter_order : int, optional
73
- Order of the downsample filter for SMuRF. Defaults to 4 .
73
+ Order of the downsample filter for SMuRF. Defaults to None .
74
74
filter_cutoff : float, optional
75
75
The cutoff frequency in Hz for the downsample filter for SMuRF. Defaults to None.
76
76
Will be (63/200)*sampling_rate if None.
@@ -88,7 +88,7 @@ def calibrate_tau(duration_step=20,
88
88
filter_cutoff = int (63 / 200 * 4000 / downsample_factor )
89
89
tag += f', filter_cutoff { filter_cutoff :.0f} ' ,
90
90
91
- if filter_order != 4 :
91
+ if filter_order is not None and filter_order != 4 :
92
92
tag += f', filter_order { filter_order :.0f} '
93
93
94
94
run .smurf .stream ('on' ,
@@ -127,7 +127,7 @@ def calibrate_tau(duration_step=20,
127
127
128
128
def calibrate_gain (duration = 60 , speed_rpm = 90 ,
129
129
forward = True , do_setup = True , stop = True ,
130
- downsample_factor = 8 , filter_disable = False , filter_order = 4 , filter_cutoff = None ):
130
+ downsample_factor = 8 , filter_disable = False , filter_order = None , filter_cutoff = None ):
131
131
"""Gain calibration with the stimulator
132
132
133
133
Parameters
@@ -149,7 +149,7 @@ def calibrate_gain(duration=60, speed_rpm=90,
149
149
filter_disable : bool, optional
150
150
If True, will disable the downsample filter before streaming. Defaults to True.
151
151
filter_order : int, optional
152
- Order of the downsample filter for SMuRF. Defaults to 4 .
152
+ Order of the downsample filter for SMuRF. Defaults to None .
153
153
filter_cutoff : float, optional
154
154
The cutoff frequency in Hz for the downsample filter for SMuRF. Defaults to None.
155
155
Will be (63/200)*sampling_rate if None.
@@ -176,7 +176,7 @@ def calibrate_gain(duration=60, speed_rpm=90,
176
176
tag += f', filter_disable { filter_disable } '
177
177
else :
178
178
tag += f', filter_cutoff { filter_cutoff :.0f} ' ,
179
- if filter_order != 4 :
179
+ if filter_order is not None and filter_order != 4 :
180
180
tag += f', filter_order { filter_order :.0f} '
181
181
182
182
run .smurf .stream ('on' ,
0 commit comments