Example #1
0
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()
Example #2
0
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()
Example #3
0
    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.
Example #4
0
 def trigger(self):
     ERT.emitErtChange()  # plugin may have added new cases.
Example #5
0
 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.
Example #6
0
 def trigger(self):
     ERT.emitErtChange() # plugin may have added new cases.
Example #7
0
 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.
Example #8
0
def selectOrCreateNewCase(case_name):
    if getCurrentCaseName() != case_name:
        fs = ERT.ert.getEnkfFsManager().getFileSystem(case_name)
        ERT.ert.getEnkfFsManager().switchFileSystem(fs)
        ERT.emitErtChange()
Example #9
0
def setNumberOfIterations(iteration_count):
    """ @type iteration_count: int """
    if iteration_count != getNumberOfIterations():
        ERT.ert.analysisConfig().getAnalysisIterConfig().setNumIterations(iteration_count)
        ERT.emitErtChange()
Example #10
0
def selectOrCreateNewCase(case_name):
    if getCurrentCaseName() != case_name:
        fs = ERT.ert.getEnkfFsManager().getFileSystem(case_name)
        ERT.ert.getEnkfFsManager().switchFileSystem(fs)
        ERT.emitErtChange()
Example #11
0
def setNumberOfIterations(iteration_count):
    """ @type iteration_count: int """
    if iteration_count != getNumberOfIterations():
        ERT.ert.analysisConfig().getAnalysisIterConfig().setNumIterations(
            iteration_count)
        ERT.emitErtChange()