Beispiel #1
0
    def do_print(self, line):
        keys = matchItems(line, self.fetchSupportedKeys())

        if len(keys) == 0:
            self.lastCommandFailed("Must have at least one GenKW key")
            return False

        case_name = self.ert().getEnkfFsManager().getCurrentFileSystem().getCaseName()

        data = GenKwCollector.loadAllGenKwData(self.ert(), case_name, keys)
        print(data)
Beispiel #2
0
    def do_print(self, line):
        keys = matchItems(line, self.fetchSupportedKeys())

        if len(keys) == 0:
            self.lastCommandFailed("Must have at least one GenKW key")
            return False

        case_name = self.ert().getEnkfFsManager().getCurrentFileSystem().getCaseName()

        data = GenKwCollector.loadAllGenKwData(self.ert(), case_name, keys)
        print(data)
Beispiel #3
0
    def do_histogram(self, line):
        keys = matchItems(line, self.fetchSupportedKeys())

        if len(keys) == 0:
            print("Error: Must have at least one GenKW key")
            return False

        case_list = self.shellContext()["plot_settings"].getCurrentPlotCases()

        for key in keys:
            for case_name in case_list:
                data = GenKwCollector.loadAllGenKwData(self.ert(), case_name, [key])
                plot = ShellPlot(key)
                plot.histogram(data, key, log_on_x=key.startswith("LOG10_"))
Beispiel #4
0
    def do_histogram(self, line):
        keys = matchItems(line, self.fetchSupportedKeys())

        if len(keys) == 0:
            self.lastCommandFailed("Must have at least one GenKW key")
            return False

        case_list = self.shellContext()["plot_settings"].getCurrentPlotCases()

        for key in keys:
            for case_name in case_list:
                data = GenKwCollector.loadAllGenKwData(self.ert(), case_name, [key])
                if not data.empty:
                    plot = ShellPlot(key)
                    plot.histogram(data, key, log_on_x=key.startswith("LOG10_"))
Beispiel #5
0
    def do_density(self, line):
        keys = matchItems(line, self.fetchSupportedKeys())

        if len(keys) == 0:
            print("Error: Must have at least one GenKW key")
            return False

        case_list = self.shellContext()["plot_settings"].getCurrentPlotCases()

        for key in keys:
            plot = ShellPlot(key)
            for case_name in case_list:
                data = GenKwCollector.loadAllGenKwData(self.ert(), case_name, [key])
                plot.density(data, key, legend_label=case_name)
            plot.showLegend()
Beispiel #6
0
    def do_density(self, line):
        keys = matchItems(line, self.fetchSupportedKeys())

        if len(keys) == 0:
            self.lastCommandFailed("Must have at least one GenKW key")
            return False

        case_list = self.shellContext()["plot_settings"].getCurrentPlotCases()

        for key in keys:
            plot = ShellPlot(key)
            for case_name in case_list:
                data = GenKwCollector.loadAllGenKwData(self.ert(), case_name, [key])

                if not data.empty:
                    plot.density(data, key, legend_label=case_name)
            plot.showLegend()