run_fraction_summary¶
- rubin_sim.maf.batches.run_fraction_summary(bdict, h_mark, out_dir, results_db)¶
Calculate fractional completeness of the population for color and lightcurve metrics.
This should be done after combining any sub-sets of the metric results.
- Parameters:
- bdictdict of metric_bundles
Dict containing ~rubin_sim.maf.MoMetricBundles, including bundles we’re expecting to contain lightcurve/color evaluations.
- h_markfloat
h_mark value to add to completeness plotting dict. If defined, this value is used. If None, but h_mark in plot_dict for metric, then this value (-2) is used. If h_mark not in plotdict, then the median h_range value - 2 is used.
- timesnp.ndarray
The times at which to calculate completeness (over time).
- out_dirstr
Output directory to save completeness bundles to disk.
- results_db~rubin_sim.maf.db.results_db
Results database to save information about completeness bundle.
- Returns:
- dict of metric_bundles
Dictionary of the metric bundles for the fractional evaluation of the population.