This PR adds the to_dict method to the Histogram class. The reason for adding this method is because there is currently no easy way to convert a Histogram instance into a dict. This is needed though if the user wishes to save the Histogram as an Attribute as Attributes can only write values that are dicts.
This PR adds the
to_dict
method to theHistogram
class. The reason for adding this method is because there is currently no easy way to convert aHistogram
instance into adict
. This is needed though if the user wishes to save theHistogram
as anAttribute
asAttributes
can only write values that aredict
s.