Skip to content

Sum of weights (squared) in WeightedMean histograms not filled properly #562

@olbessid

Description

@olbessid

I am filling histograms with storage type WeightedMean. I then want to retrieve the sum of weights and more particularly the sum of weights squared bin by bin. But I find that calling both these properties just returns the number of histogram entries. I am using python 3.8.
Attaching a minimalistic example to illustrate the issue. I wasn't able to attach the notebook itself, so I made a screenshot and also collected the code in a pdf.
Screenshot from 2024-03-22 13-33-58
notebook snippet.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions