@@ -271,6 +271,7 @@ def __init__(
271271 # extract parameters
272272 self ._tags = process_args .get ("tags" , [])
273273 self ._noise_aman = process_args .get ("noise_aman" , "noise" )
274+ self ._unit_factor = process_args .get ("unit_factor" , 1e6 )
274275
275276 def _process (self , meta ):
276277
@@ -286,7 +287,7 @@ def _process(self, meta):
286287 (meta .det_info .wafer_slot == ws ) & (meta .det_info .wafer .bandpass == bp )
287288 )[0 ]
288289
289- white_noise = meta .preprocess [self ._noise_aman ].white_noise [subset ]
290+ white_noise = meta .preprocess [self ._noise_aman ].white_noise [subset ] * self . _unit_factor
290291 mask = (white_noise != 0 ) & (~ np .isnan (white_noise ))
291292 good_indices = np .nonzero (mask )[0 ]
292293 if good_indices .size > 0 :
@@ -337,6 +338,7 @@ def __init__(
337338 # extract parameters
338339 self ._tags = process_args .get ("tags" , [])
339340 self ._noise_aman = process_args .get ("noise_aman" , "noise" )
341+ self ._unit_factor = process_args .get ("unit_factor" , 1e6 )
340342
341343 def _process (self , meta ):
342344
@@ -352,7 +354,7 @@ def _process(self, meta):
352354 (meta .det_info .wafer_slot == ws ) & (meta .det_info .wafer .bandpass == bp )
353355 )[0 ]
354356
355- white_noise = meta .preprocess [self ._noise_aman ].white_noise [subset ]
357+ white_noise = meta .preprocess [self ._noise_aman ].white_noise [subset ] * self . _unit_factor
356358 mask = (white_noise != 0 ) & (~ np .isnan (white_noise ))
357359 good_indices = np .nonzero (mask )[0 ]
358360 if good_indices .size > 0 :
0 commit comments