Пример #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 fetchBlockObservationData(self, block_observation_data_fetcher, key, cases):
        plot_data = PlotData(key)

        plot_data.setUnitY(self.ert().eclConfig().getDepthUnit())
        plot_data.setUnitX(self.ert().eclConfig().getPressureUnit())

        if block_observation_data_fetcher.hasData(key):
            block_observation_data_fetcher.setSelectedReportStepIndex(0)
            self.addObservationData(plot_data, key, block_observation_data_fetcher)

            ensemble_block_data_fetcher = EnsembleBlockDataFetcher(self.ert())
            ensemble_block_data_fetcher.setSelectedReportStepIndex(0)
            self.addEnsembleData(plot_data, key, cases, ensemble_block_data_fetcher)

            self.addPcaData(plot_data, key, cases)

        return plot_data
Пример #3
0
    def fetchBlockObservationData(self, block_observation_data_fetcher, key,
                                  cases):
        plot_data = PlotData(key)

        plot_data.setUnitY(self.ert().eclConfig().getDepthUnit())
        plot_data.setUnitX(self.ert().eclConfig().getPressureUnit())

        if block_observation_data_fetcher.hasData(key):
            block_observation_data_fetcher.setSelectedReportStepIndex(0)
            self.addObservationData(plot_data, key,
                                    block_observation_data_fetcher)

            ensemble_block_data_fetcher = EnsembleBlockDataFetcher(self.ert())
            ensemble_block_data_fetcher.setSelectedReportStepIndex(0)
            self.addEnsembleData(plot_data, key, cases,
                                 ensemble_block_data_fetcher)

            self.addPcaData(plot_data, key, cases)

        return plot_data
Пример #4
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