def validateAnalysisModule(self, line): keys = matchItems(line, self.getAnalysisModules()) if len(keys) == 0 or len(keys) > 1: raise ValueError("Must enter a single valid Analysis Module") return list(keys)[0]
def do_function(self, line): keys = matchItems(line, self.fetchSupportedKeys()) if len(keys) == 0: self.lastCommandFailed("Must have at least one %s key" % name) return False for key in keys: pdg = self.plotDataGatherer() plot_function(self.shellContext(), pdg, key)
def do_function(self, line): keys = matchItems(line, self.fetchSupportedKeys()) if len(keys) == 0: self.lastCommandFailed("Must have at least one %s key" % name) return False case_name = self.shellContext().ert().getEnkfFsManager().getCurrentFileSystem().getCaseName() for key in keys: pdg = self.plotDataGatherer() if pdg.canGatherDataForKey(key): data = pdg.gatherData(self.shellContext().ert(), case_name, key) print(data) else: self.lastCommandFailed("Unable to print data for key: %s" % key)
def do_function(self, line): keys = matchItems(line, self.fetchSupportedKeys()) if len(keys) == 0: self.lastCommandFailed("Must have at least one %s key" % name) return False case_name = self.shellContext().ert().getEnkfFsManager( ).getCurrentFileSystem().getCaseName() for key in keys: pdg = self.plotDataGatherer() if pdg.canGatherDataForKey(key): data = pdg.gatherData(self.shellContext().ert(), case_name, key) print(data) else: self.lastCommandFailed("Unable to print data for key: %s" % key)