From 05fea5d1b4fcdea22c099d60ce505abc5ab64626 Mon Sep 17 00:00:00 2001 From: yuhanwyhan <38056285+yuhanwyhan@users.noreply.github.com> Date: Tue, 20 Jun 2023 16:31:26 -0400 Subject: [PATCH] Update bias_dets.py --- sodetlib/operations/bias_dets.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sodetlib/operations/bias_dets.py b/sodetlib/operations/bias_dets.py index 5d2b362e..880239ac 100644 --- a/sodetlib/operations/bias_dets.py +++ b/sodetlib/operations/bias_dets.py @@ -310,7 +310,13 @@ def biasstep_rebias( S.set_tes_bias_bipolar_array(safe_dc_biases) bsa_0 = bias_steps.take_bias_steps(S, cfg) - bias_steps.plot_Rfrac(bsa_0) + if make_plots: + fig, ax = bias_steps.plot_Rfrac(bsa_0) + fname = sdl.make_filename(S, 'post_overbiasing_Rfrac.png', plot=True) + fig.savefig(fname) + S.pub.register_file(fname, 'biasstep_rfrac', format='png', plot=True) + if not show_plots: + plt.close(fig) ## add in check if detectors are normal now percentage_rn_0 = bsa_0.R0/bsa_0.R_n_IV