def initializeCurrentCaseFromScratch(parameters, members): selected_parameters = StringList(parameters) for member in members: member = int(member.strip()) ERT.ert.getEnkfFsManager().initializeFromScratch(selected_parameters, member, member) ERT.emitErtChange()
def initializeCurrentCaseFromExisting(source_case, target_case, source_report_step, parameters, members): if caseExists(source_case) and caseIsInitialized(source_case) and caseExists(target_case): total_member_count = getRealizationCount() member_mask = BoolVector.createFromList(total_member_count, members) selected_parameters = StringList(parameters) ERT.ert.getEnkfFsManager().customInitializeCurrentFromExistingCase(source_case, source_report_step, member_mask, selected_parameters) ERT.emitErtChange()
def runSimulation(self): case_name = getCurrentCaseName() message = "Are you sure you want to use case '%s' for initialization of the initial ensemble when running the simulations?" % case_name start_simulations = QMessageBox.question(self, "Start simulations?", message, QMessageBox.Yes | QMessageBox.No ) if start_simulations == QMessageBox.Yes: run_model = self.getCurrentSimulationModel() arguments = self.getSimulationArguments() dialog = RunDialog(run_model, arguments, self) dialog.startSimulation() dialog.exec_() ERT.emitErtChange() # simulations may have added new cases.
def trigger(self): ERT.emitErtChange() # plugin may have added new cases.
def trigger(self): run_workflow_widget = RunWorkflowWidget() dialog = ClosableDialog("Run workflow", run_workflow_widget, self.parent()) dialog.exec_() ERT.emitErtChange() # workflow may have added new cases.
def selectOrCreateNewCase(case_name): if getCurrentCaseName() != case_name: fs = ERT.ert.getEnkfFsManager().getFileSystem(case_name) ERT.ert.getEnkfFsManager().switchFileSystem(fs) ERT.emitErtChange()
def setNumberOfIterations(iteration_count): """ @type iteration_count: int """ if iteration_count != getNumberOfIterations(): ERT.ert.analysisConfig().getAnalysisIterConfig().setNumIterations(iteration_count) ERT.emitErtChange()
def setNumberOfIterations(iteration_count): """ @type iteration_count: int """ if iteration_count != getNumberOfIterations(): ERT.ert.analysisConfig().getAnalysisIterConfig().setNumIterations( iteration_count) ERT.emitErtChange()