def __init__(self):
        RowPanel.__init__(self, "Case Management")

        self.addCreateNewCaseTab()
        self.addInitializeFromScratchTab()
        self.addInitializeFromExistingTab()

        self.endTabs()
    def __init__(self):
        RowPanel.__init__(self, "Case Management")
        self.setMinimumWidth(600)

        self.addCreateNewCaseTab()
        self.addInitializeFromScratchTab()
        self.addInitializeFromExistingTab()
        self.addShowCaseInfo()

        self.endTabs()
Example #3
0
    def __init__(self):
        RowPanel.__init__(self, "Case Management")
        self.setMinimumWidth(600)

        self.addCreateNewCaseTab()
        self.addInitializeFromScratchTab()
        self.addInitializeFromExistingTab()
        self.addShowCaseInfo()

        self.endTabs()
    def __init__(self):
        RowPanel.__init__(self, "Configuration")

        self.addLabeledSeparator("Case initialization")
        case_combo = ComboChoice(CaseSelectorModel(), "Current case", "init/current_case_selection")
        case_configurator = CaseInitializationConfigurationPanel()
        self.addRow(case_combo, case_configurator)

        self.addLabeledSeparator("Queue System")

        queue_system_selector = QueueSystemSelector()
        queue_system_combo = ComboChoice(queue_system_selector, "Queue system", "config/queue_system/queue_system")
        queue_system_configurator = QueueSystemConfigurationPanel()
        self.addRow(queue_system_combo, queue_system_configurator)
Example #5
0
    def __init__(self):
        RowPanel.__init__(self, "Simulation")

        self.addLabeledSeparator("Simulation settings")

        case_model = CaseSelectorModel()
        case_selector = ComboChoice(case_model, "Current case", "init/current_case_selection")
        self.addRow(case_selector)

        # Give a warning if the case is not initialized!
        IsCaseInitializedModel().observable().attach(IsCaseInitializedModel.TEXT_VALUE_CHANGED_EVENT, self.updateSimulationStatus)

        runpath_model = RunPathModel()
        self.addRow(PathFormatChooser(runpath_model, "Runpath", "config/simulation/runpath"))

        ensemble_size_model = EnsembleSizeModel()
        self.addRow(IntegerSpinner(ensemble_size_model, "Number of realizations", "config/ensemble/num_realizations"))

        simulation_mode_model = SimulationModeModel()
        self.addRow(ComboChoice(simulation_mode_model, "Simulation mode", "run/simulation_mode"))

        self.addSpace(10)
        self.run = FunctionButtonModel("Run", self.runSimulation)
        self.run.setEnabled(SimulationModeModel().getCurrentChoice().buttonIsEnabled())

        self.run_button = Button(self.run, label="Start simulation", help_link="run/run")
        self.run_button.addStretch()

        self.config_and_run = FunctionButtonModel("Configure and Run", self.configureAndRunSimulation)
        self.config_and_run.setEnabled(SimulationModeModel().getCurrentChoice().buttonIsEnabled())

        self.run_button.addOption(self.config_and_run)
        self.run_button.addOption(OneMoreIteration())
        self.addRow(self.run_button)
        self.addSpace(10)

        self.warning_panel = WarningPanel()
        self.addRow(self.warning_panel)

        simulation_mode_model.observable().attach(SimulationModeModel.CURRENT_CHOICE_CHANGED_EVENT, self.toggleSimulationMode)

        self.updateSimulationStatus()
Example #6
0
    def __init__(self):
        RowPanel.__init__(self, "Queue System")

        # self.startTabs("LSF")
        self.addLabeledSeparator("LSF")
        self.addRow(
            StringBox(LsfQueue(), "LSF Queue",
                      "config/queue_system/lsf_queue"))
        self.addRow(
            IntegerSpinner(LsfMaxRunning(), "Max running",
                           "config/queue_system/max_running_lsf"))
        self.addRow(
            StringBox(LsfRequest(), "Resources",
                      "config/queue_system/lsf_resources"))
        self.addSpace(10)

        # self.addTab("RSH")
        self.addLabeledSeparator("RSH")
        self.addRow(
            PathChooser(RshCommand(), "Command",
                        "config/queue_system/rsh_command"))
        self.addRow(
            IntegerSpinner(RshMaxRunning(), "Max running",
                           "config/queue_system/max_running_rsh"))

        keyword_table = KeywordTable(RshHostListModel(), "Host List",
                                     "config/queue_system/rsh_host_list")
        keyword_table.setColumnHeaders(keyword_name="Host",
                                       value_name="Number of Jobs")
        self.addRow(keyword_table)
        self.addSpace(10)

        # self.addTab("LOCAL")
        self.addLabeledSeparator("Local")
        self.addRow(
            IntegerSpinner(LocalMaxRunning(), "Max running",
                           "config/queue_system/max_running_local"))
        self.addSpace(20)
    def __init__(self):
        RowPanel.__init__(self, "Queue System")

        # self.startTabs("LSF")
        self.addLabeledSeparator("LSF")
        self.addRow(StringBox(LsfQueue(), "LSF Queue", "config/queue_system/lsf_queue"))
        self.addRow(IntegerSpinner(LsfMaxRunning(), "Max running", "config/queue_system/max_running_lsf"))
        self.addRow(StringBox(LsfRequest(), "Resources", "config/queue_system/lsf_resources"))
        self.addSpace(10)

        # self.addTab("RSH")
        self.addLabeledSeparator("RSH")
        self.addRow(PathChooser(RshCommand(), "Command", "config/queue_system/rsh_command"))
        self.addRow(IntegerSpinner(RshMaxRunning(), "Max running", "config/queue_system/max_running_rsh"))

        keyword_table = KeywordTable(RshHostListModel(), "Host List", "config/queue_system/rsh_host_list")
        keyword_table.setColumnHeaders(keyword_name="Host", value_name="Number of Jobs")
        self.addRow(keyword_table)
        self.addSpace(10)

        # self.addTab("LOCAL")
        self.addLabeledSeparator("Local")
        self.addRow(IntegerSpinner(LocalMaxRunning(), "Max running", "config/queue_system/max_running_local"))
        self.addSpace(20)