예제 #1
0
    def fetchSummaryData(self, observation_data_fetcher, key, cases):
        plot_data = PlotData(key)

        histogram_factory = HistogramPlotDataFactory(key)
        refcase_fetcher = RefcaseDataFetcher(self.ert())

        self.addObservationData(plot_data, key, observation_data_fetcher,
                                histogram_factory)

        self.addRefcaseData(plot_data, key, refcase_fetcher, histogram_factory)

        self.addEnsembleData(plot_data, key, cases,
                             EnsembleDataFetcher(self.ert()),
                             histogram_factory)

        self.addPcaData(plot_data, key, cases)

        if refcase_fetcher.hasRefcase():
            unit = refcase_fetcher.getRefCase().unit(key)
            if unit != "":
                plot_data.setUnitY(unit)

        plot_data.setHistogramFactory(histogram_factory)

        return plot_data
예제 #2
0
    def fetchGenKWData(self, gen_kw_fetcher, key, cases):
        plot_data = PlotData(key)

        histogram_factory = ReportStepLessHistogramPlotDataFactory(key)
        self.addEnsembleData(plot_data, key, cases, gen_kw_fetcher, histogram_factory)
        plot_data.setHistogramFactory(histogram_factory)

        return plot_data
예제 #3
0
    def fetchGenKWData(self, gen_kw_fetcher, key, cases):
        plot_data = PlotData(key)

        histogram_factory = ReportStepLessHistogramPlotDataFactory(key)
        self.addEnsembleData(plot_data, key, cases, gen_kw_fetcher,
                             histogram_factory)
        plot_data.setHistogramFactory(histogram_factory)

        return plot_data
예제 #4
0
    def fetchGenKWData(self, gen_kw_fetcher, key, cases):
        plot_data = PlotData(key)

        histogram_factory = ReportStepLessHistogramPlotDataFactory(key)

        for case in cases:
            ensemble_data = gen_kw_fetcher.fetchData(key, case)

            ensemble_plot_data = EnsemblePlotData(key, case)
            ensemble_plot_data.setEnsembleData(ensemble_data["x"], ensemble_data["y"], None, None)
            ensemble_plot_data.updateBoundaries(ensemble_data["min_x"], ensemble_data["max_x"], ensemble_data["min_y"], ensemble_data["max_y"])
            plot_data.addEnsembleData(ensemble_plot_data)

            histogram_factory.addEnsembleData(case, ensemble_data["x"], ensemble_data["y"], ensemble_data["min_y"], ensemble_data["max_y"])

        plot_data.setHistogramFactory(histogram_factory)

        return plot_data
예제 #5
0
    def fetchSummaryData(self, observation_data_fetcher, key, cases):
        plot_data = PlotData(key)

        histogram_factory = HistogramPlotDataFactory(key)
        refcase_fetcher = RefcaseDataFetcher(self.ert())

        self.addObservationData(plot_data, key, observation_data_fetcher, histogram_factory)

        self.addRefcaseData(plot_data, key, refcase_fetcher, histogram_factory)

        self.addEnsembleData(plot_data, key, cases, EnsembleDataFetcher(self.ert()), histogram_factory)

        self.addPcaData(plot_data, key, cases)

        if refcase_fetcher.hasRefcase():
            unit = refcase_fetcher.getRefCase().unit(key)
            if unit != "":
                plot_data.setUnitY(unit)

        plot_data.setHistogramFactory(histogram_factory)

        return plot_data
예제 #6
0
    def fetchSummaryData(self, observation_data_fetcher, key, cases):
        plot_data = PlotData(key)

        histogram_factory = HistogramPlotDataFactory(key)

        observation_data = observation_data_fetcher.fetchData(key)
        observation_plot_data = ObservationPlotData(key)
        observation_plot_data.setObservationData(observation_data["x"], observation_data["y"], observation_data["std"], observation_data["continuous"])
        observation_plot_data.updateBoundaries(observation_data["min_x"], observation_data["max_x"], observation_data["min_y"], observation_data["max_y"])
        plot_data.setObservationData(observation_plot_data)

        histogram_factory.setObservations(observation_data["x"], observation_data["y"], observation_data["std"], observation_data["min_y"], observation_data["max_y"])



        refcase_data = RefcaseDataFetcher(self.ert()).fetchData(key)
        refcase_plot_data = RefcasePlotData(key)
        refcase_plot_data.setRefcaseData(refcase_data["x"], refcase_data["y"])
        refcase_plot_data.updateBoundaries(refcase_data["min_x"], refcase_data["max_x"], refcase_data["min_y"], refcase_data["max_y"])
        plot_data.setRefcaseData(refcase_plot_data)

        histogram_factory.setRefcase(refcase_data["x"], refcase_data["y"], refcase_data["min_y"], refcase_data["max_y"])

        for case in cases:
            ensemble_data = EnsembleDataFetcher(self.ert()).fetchData(key, case)

            ensemble_plot_data = EnsemblePlotData(key, case)
            ensemble_plot_data.setEnsembleData(ensemble_data["x"], ensemble_data["y"], ensemble_data["min_y_values"], ensemble_data["max_y_values"])
            ensemble_plot_data.updateBoundaries(ensemble_data["min_x"], ensemble_data["max_x"], ensemble_data["min_y"], ensemble_data["max_y"])
            plot_data.addEnsembleData(ensemble_plot_data)

            histogram_factory.addEnsembleData(case, ensemble_data["x"], ensemble_data["y"], ensemble_data["min_y"], ensemble_data["max_y"])

        plot_data.setHistogramFactory(histogram_factory)

        return plot_data