@@ -113,49 +113,46 @@ def __init__(self,
113113 - 'sensor_serial_number': 300 (int)
114114 - 'chopper_status': 1 (int) 1 means 0N, 0 means OFF
115115 - 'calibration_data' (dict)
116- - '300' (dict) - key is coil number
117- - 'chopper_on' (ndarray, shape: n,3)
118- n - number of frequencies
119- First column: Frequency (Hz)
120- Second column: Magnitude (V/nT*Hz)
121- Third column: Phase (deg)
122- - 'chopper_off' (ndarray, shape: n,3)
123- n - number of frequencies
124- First column: Frequency (Hz)
125- Second column: Magnitude (V/nT*Hz)
126- Third column: Phase (deg)
116+ - 'chopper_on' (ndarray, shape: n,3)
117+ n - number of frequencies
118+ First column: Frequency (Hz)
119+ Second column: Magnitude (V/nT*Hz)
120+ Third column: Phase (deg)
121+ - 'chopper_off' (ndarray, shape: n,3)
122+ n - number of frequencies
123+ First column: Frequency (Hz)
124+ Second column: Magnitude (V/nT*Hz)
125+ Third column: Phase (deg)
127126 - 'hy' (dict) details of hx coil
128127 - 'sensor_type': 'MFS06e' (str)
129128 - 'sensor_serial_number': 301 (int)
130129 - 'chopper_status': 1 (int) 1 means 0N, 0 means OFF
131130 - 'calibration_data' (dict)
132- - '301' (dict) - key is coil number
133- - 'chopper_on' (ndarray, shape: n,3)
134- n - number of frequencies
135- First column: Frequency (Hz)
136- Second column: Magnitude (V/nT*Hz)
137- Third column: Phase (deg)
138- - 'chopper_off' (ndarray, shape: n,3)
139- n - number of frequencies
140- First column: Frequency (Hz)
141- Second column: Magnitude (V/nT*Hz)
142- Third column: Phase (deg)
131+ - 'chopper_on' (ndarray, shape: n,3)
132+ n - number of frequencies
133+ First column: Frequency (Hz)
134+ Second column: Magnitude (V/nT*Hz)
135+ Third column: Phase (deg)
136+ - 'chopper_off' (ndarray, shape: n,3)
137+ n - number of frequencies
138+ First column: Frequency (Hz)
139+ Second column: Magnitude (V/nT*Hz)
140+ Third column: Phase (deg)
143141 - 'hz' (dict) details of hx coil
144142 - 'sensor_type': 'MFS06e' (str)
145143 - 'sensor_serial_number': 301 (int)
146144 - 'chopper_status': 1 (int) 1 means 0N, 0 means OFF
147145 - 'calibration_data' (dict)
148- - '302' (dict) - key is coil number
149- - 'chopper_on' (ndarray, shape: n,3)
150- n - number of frequencies
151- First column: Frequency (Hz)
152- Second column: Magnitude (V/nT*Hz)
153- Third column: Phase (deg)
154- - 'chopper_off' (ndarray, shape: n,3)
155- n - number of frequencies
156- First column: Frequency (Hz)
157- Second column: Magnitude (V/nT*Hz)
158- Third column: Phase (deg)
146+ - 'chopper_on' (ndarray, shape: n,3)
147+ n - number of frequencies
148+ First column: Frequency (Hz)
149+ Second column: Magnitude (V/nT*Hz)
150+ Third column: Phase (deg)
151+ - 'chopper_off' (ndarray, shape: n,3)
152+ n - number of frequencies
153+ First column: Frequency (Hz)
154+ Second column: Magnitude (V/nT*Hz)
155+ Third column: Phase (deg)
159156 :type calibration_data_magnetic: dict
160157 :param apply_notch_filter: A boolean flag indicating whether a notch filter should be applied. Default is False.
161158 :type apply_notch_filter: bool
@@ -270,15 +267,13 @@ def calibrate_magnetic(self) -> None:
270267 for channel in magnetic_channels :
271268 if self .calibration_data_magnetic ['instrument' ] == 'metronix' :
272269 sensor_type = self .calibration_data_magnetic [channel ]['sensor_type' ]
273- sensor_serial_number = str (self .calibration_data_magnetic [channel ]['sensor_serial_number' ])
274270 if self .calibration_data_magnetic [channel ]['chopper_status' ] == 1 :
275271 chopper_status = "chopper_on"
276272 elif self .calibration_data_magnetic [channel ]['chopper_status' ] == 0 :
277273 chopper_status = "chopper_off"
278274 else :
279275 chopper_status = None
280- calibration_data = self .calibration_data_magnetic [channel ]['calibration_data' ][sensor_serial_number ][
281- chopper_status ]
276+ calibration_data = self .calibration_data_magnetic [channel ]['calibration_data' ][chopper_status ]
282277 calibration_object = MetronixCalibration (self .spectra [channel ], self .fft_frequencies ,
283278 sensor_type ,
284279 chopper_status , calibration_data )
0 commit comments