Skip to content

Commit

Permalink
Update bias_dets.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhanwyhan authored Jun 20, 2023
1 parent aefe183 commit 05fea5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sodetlib/operations/bias_dets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05fea5d

Please sign in to comment.