def get_plots(mcf) : v = mc_variables() plots = pc.plots_to_make() for plane, opts in plots.iteritems() : assert len(plane) == len( opts["ranges"] ) == len( opts["nbins"] ), \ "Wrong option numbers for plots (dimensionality doesnt match ranges and/or bins" d = {} for plot_vars, options in plots.iteritems() : d[tuple([ v[var] for var in plot_vars])] = options spaces = [ MCSpace( mcf, MCV, opts ) for (MCV, opts) in d.iteritems() ] return spaces
def get_plots(mcf) : # plots from now on based on Variables, so that it can accomodate for MCVariables and DerivedMCVariables v = base_variables() plots = pc.plots_to_make() for plane, opts in plots.iteritems() : assert len(plane) == len( opts["ranges"] ) == len( opts["nbins"] ), \ "Wrong option numbers for plots (dimensionality doesnt match ranges and/or bins" d = {} for plot_vars, options in plots.iteritems() : d[tuple([ v[var] for var in plot_vars])] = options spaces = [ MCSpace( mcf, Var, opts ) for (Var, opts) in d.iteritems() ] return spaces