Skip to content

Storing vs drawing histograms & accessing marginalization results #156

Open

Description

@greenwald

We currently have a flag that turns off the histogramming (1D or 2D) for variables, which is checked at the creation of histograms. It essentially is a flag for whether or not we store a histogram.

When we draw the histograms, we simply check if they exist. We do not have a flag for whether to draw the histogram.

It seems wise that we should have two flags: one for whether to store a histogram and one for whether to draw it. In moderately sized projects, a user turns off a histogram in order to reduce the size of the output PDF file. But one might want to still access the information about marginalization, which is no longer available since the histogram was not stored. If one doesn't want to draw the histogram, we should then naturally control that separately from whether one wants to store the histogram and have access to the results it contains.

I can also imagine that in an analysis with very many parameters, one might want to turn off also the storage of unnecessary histograms (which could be memory intensive), and so we could also have a separate flag for this.

Finally: we should maybe give easy access to the marginalization results that doesn't involve having to ask for the BCHistogram objects.

Activity

  1. modified the milestones: 1.0, 1.1 on Mar 22, 2016
  2. greenwald commented on Apr 11, 2016

    @greenwald
    ContributorAuthor

    Simplest solution: move flag-checking from time of histogram creation to time of histogram drawing. Create all histograms. Memory be damned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions