def test_path_argument(self): path_arg = PathArgument() validation_status = path_arg.validate("/non_existing_file") self.assertFalse(validation_status) validation_status = path_arg.validate(__file__) self.assertTrue(validation_status)
def addUpdateLogPath(self): update_log_path = ConfigurationLineDefinition(keyword=KeywordDefinition("UPDATE_LOG_PATH"), arguments=[PathArgument()], documentation_link="keywords/update_log_path", required=False, group=self.group) return update_log_path
def addEnkfSchedFile(self): sched_file = ConfigurationLineDefinition(keyword=KeywordDefinition("ENKF_SCHED_FILE"), arguments=[PathArgument()], documentation_link="keywords/enkf_sched_file", required=False, group=self.group) return sched_file
def addRshCommand(self): rsh_command = ConfigurationLineDefinition( keyword=KeywordDefinition("RSH_COMMAND"), arguments=[PathArgument()], documentation_link="keywords/rsh_command", group=self.group) return rsh_command
def addModule(self): module = ConfigurationLineDefinition( keyword=KeywordDefinition("MODULE"), arguments=[PathArgument()], documentation_link="keywords/module", required=False, group=self.group) return module
def addLicensePath(self): license_path = ConfigurationLineDefinition( keyword=KeywordDefinition("LICENSE_PATH"), arguments=[PathArgument()], documentation_link="keywords/license_path", required=False, group=self.group) return license_path
def addImageViewer(self): image_viewer = ConfigurationLineDefinition( keyword=KeywordDefinition("IMAGE_VIEWER"), arguments=[PathArgument()], documentation_link="keywords/image_viewer", required=False, group=self.group) return image_viewer
def addRftPath(self): rft_path = ConfigurationLineDefinition( keyword=KeywordDefinition("RFTPATH"), arguments=[PathArgument()], documentation_link="keywords/rftpath", required=False, group=self.group) return rft_path
def addRftConfig(self): rft_config = ConfigurationLineDefinition( keyword=KeywordDefinition("RFT_CONFIG"), arguments=[PathArgument()], documentation_link="keywords/rft_config", required=False, group=self.group) return rft_config
def addSchedulePredictionFile(self): schedule_prediction_file = ConfigurationLineDefinition( keyword=KeywordDefinition("SCHEDULE_PREDICTION_FILE"), arguments=[PathArgument()], documentation_link="keywords/schedule_prediction_file", required=False, group=self.group) return schedule_prediction_file
def addObsConfig(self): obs_config = ConfigurationLineDefinition( keyword=KeywordDefinition("OBS_CONFIG"), arguments=[PathArgument()], documentation_link="keywords/obs_config", required=False, group=self.group) return obs_config
def addInclude(self): include = ConfigurationLineDefinition( keyword=KeywordDefinition("INCLUDE"), arguments=[PathArgument()], documentation_link="keywords/include", required=False, group=self.group) return include
def addRefCase(self): refcase = ConfigurationLineDefinition( keyword=KeywordDefinition("REFCASE"), arguments=[PathArgument()], documentation_link="keywords/refcase", required=False, group=self.group) return refcase
def addEnsPath(self): ens_path = ConfigurationLineDefinition( keyword=KeywordDefinition("ENSPATH"), arguments=[PathArgument()], documentation_link="keywords/enspath", required=False, group=self.group) return ens_path
def addExecutable(self): executable = ConfigurationLineDefinition( keyword=KeywordDefinition("EXECUTABLE"), arguments=[PathArgument()], documentation_link="keywords/executable", required=False, group=self.group) return executable
def addPlotPath(self): plot_path = ConfigurationLineDefinition( keyword=KeywordDefinition("PLOT_PATH"), arguments=[PathArgument(must_exist=False)], documentation_link="keywords/plot_path", required=False, group=self.group) return plot_path
def addWorkflowJobDirectory(self): workflow_job_directory = ConfigurationLineDefinition( keyword=KeywordDefinition("WORKFLOW_JOB_DIRECTORY"), arguments=[PathArgument()], documentation_link="keywords/workflow_job_directory", required=False, group=self.group) return workflow_job_directory
def addQCPath(self): qc_path = ConfigurationLineDefinition( keyword=KeywordDefinition("QC_PATH"), arguments=[PathArgument()], documentation_link="keywords/qc_path", required=False, group=self.group) return qc_path
def addRunTemplate(self): run_template = ConfigurationLineDefinition( keyword=KeywordDefinition("RUN_TEMPLATE"), arguments=[PathArgument(), StringArgument()], documentation_link="keywords/run_template", required=False, group=self.group) return run_template
def addRunpathFile(self): runpath_file = ConfigurationLineDefinition( keyword=KeywordDefinition("RUNPATH_FILE"), arguments=[PathArgument()], documentation_link="keywords/runpath_file", required=False, group=self.group) return runpath_file
def addJobScript(self): job_script = ConfigurationLineDefinition( keyword=KeywordDefinition("JOB_SCRIPT"), arguments=[PathArgument()], documentation_link="keywords/job_script", required=False, group=self.group) return job_script
def addRunpath(self): runpath = ConfigurationLineDefinition( keyword=KeywordDefinition("RUNPATH"), arguments=[PathArgument(must_exist=False)], documentation_link="keywords/runpath", required=False, group=self.group) return runpath
def addInstallJob(self): install_job = ConfigurationLineDefinition( keyword=KeywordDefinition("INSTALL_JOB"), arguments=[StringArgument(), PathArgument()], documentation_link="keywords/install_job", required=False, group=self.group) return install_job
def addLogFile(self): log_file = ConfigurationLineDefinition( keyword=KeywordDefinition("LOG_FILE"), arguments=[PathArgument()], documentation_link="keywords/log_file", required=False, group=self.group) return log_file
def addUpdatePath(self): update_path = ConfigurationLineDefinition( keyword=KeywordDefinition("UPDATE_PATH"), arguments=[StringArgument(built_in=True), PathArgument()], documentation_link="keywords/update_path", required=False, group=self.group) return update_path
def addResultPath(self): result_path = ConfigurationLineDefinition( keyword=KeywordDefinition("RESULT_PATH"), arguments=[PathArgument()], documentation_link="keywords/result_path", required=False, group=self.group, ) return result_path
def addLoadWorkflow(self): load_workflow = ConfigurationLineDefinition( keyword=KeywordDefinition("LOAD_WORKFLOW"), arguments=[PathArgument(), StringArgument(optional=True)], documentation_link="keywords/load_workflow", required=False, group=self.group) return load_workflow