Skip to content

Commit

Permalink
Update src/cabinetry/model_utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Held <45009355+alexander-held@users.noreply.github.com>
  • Loading branch information
ekauffma and alexander-held authored Jul 5, 2023
1 parent 2332ce5 commit ab4ceb5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/cabinetry/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,10 @@ def yield_stdev(
total_stdev_per_channel = np.sqrt(total_variance[:, n_bins:].T).tolist()

# log total stdev per bin / channel (-1 index for sample sum)
total_stdev_bin = [
total_stdev_per_bin[i][-1] for i in range(len(total_stdev_per_bin))
]
n_channels = len(model.config.channels)
total_stdev_bin = [total_stdev_per_bin[i][-1] for i in range(n_channels)]
log.debug(f"total stdev is {total_stdev_bin}")
total_stdev_chan = [
total_stdev_per_channel[i][-1] for i in range(len(total_stdev_per_channel))
]
total_stdev_chan = [total_stdev_per_channel[i][-1] for i in range(n_channels)]
log.debug(f"total stdev per channel is {total_stdev_chan}")

# save to cache
Expand Down

0 comments on commit ab4ceb5

Please sign in to comment.