From 4f293780233c0b4d7bc554dbd2b3976d213dfac1 Mon Sep 17 00:00:00 2001 From: Jack Lashner Date: Mon, 13 May 2024 10:50:42 -0400 Subject: [PATCH] move bias_step init_current_mode outside of try statement --- sodetlib/operations/bias_steps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sodetlib/operations/bias_steps.py b/sodetlib/operations/bias_steps.py index 97ac07c6..086566d2 100644 --- a/sodetlib/operations/bias_steps.py +++ b/sodetlib/operations/bias_steps.py @@ -1151,10 +1151,10 @@ def take_bias_steps(S, cfg, bgs=None, step_voltage=0.05, step_duration=0.05, initial_ds_factor = S.get_downsample_factor() initial_filter_disable = S.get_filter_disable() initial_dc_biases = S.get_tes_bias_bipolar_array() + init_current_mode = sdl.get_current_mode_array(S) try: dc_biases = initial_dc_biases - init_current_mode = sdl.get_current_mode_array(S) if high_current_mode: dc_biases = dc_biases / S.high_low_current_ratio step_voltage /= S.high_low_current_ratio