def make_plots(self): """Make plots for scale and filter.""" if not self.data: return {"filter_plots": {}} # Make merging stats plots, histograms and image ranges. d = make_scaling_filtering_plots(self.data) return {"filter_plots": d}
def make_scale_and_filter_plots(self, filtering_results): data = { "merging_stats": filtering_results.get_merging_stats(), "initial_expids_and_image_ranges": filtering_results.initial_expids_and_image_ranges, "cycle_results": filtering_results.get_cycle_results(), "expids_and_image_ranges": filtering_results.expids_and_image_ranges, "mode": "dataset", } return {"filter_plots": make_scaling_filtering_plots(data)}
def make_filtering_plots(script): """Make filtering plots for HTML report""" if script.filtering_results: data = { "merging_stats": script.filtering_results.get_merging_stats(), "initial_expids_and_image_ranges": script.filtering_results.initial_expids_and_image_ranges, "cycle_results": script.filtering_results.get_cycle_results(), "expids_and_image_ranges": script.filtering_results.expids_and_image_ranges, "mode": script.params.filtering.deltacchalf.mode, } d = make_scaling_filtering_plots(data) return {"filter_plots": d} return {"filter_plots": {}}