Skip to content

Commit

Permalink
handle case where bot_eo config omits biasnoise analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiang87 committed Oct 12, 2019
1 parent 42eedfa commit 1f2dfaa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ def plt_savefig(filename):
eotest_results.add_seg_result(amp, 'MAX_FRAC_DEV', 0.)
eotest_results.add_seg_result(amp, 'DC95_SHOT_NOISE',
np.float(shot_noise[i]))
eotest_results['TOTAL_NOISE'][i] = total_noise[i]
try:
eotest_results['TOTAL_NOISE'][i] = total_noise[i]
except KeyError:
eotest_results.add_seg_result(amp, 'TOTAL_NOISE',
np.float(total_noise[i]))
eotest_results.write(filename)

run = siteUtils.getRunNumber()
Expand Down

0 comments on commit 1f2dfaa

Please sign in to comment.