Ejemplo n.º 1
0
 def __init__(self, projectDir, configFile=None):
     """ Constructor for Context class
     
         @param projectDir Path of the project whose metadata store is to be read from
         @param configFile Path of rhessysworkflow configuration file to use.  If none,
         will attempt to read configuration from a file named in the environment
         variable ecohydrolib.context.Context.CONFIG_FILE_ENV
         
         @raise WorkflowVersionError if a version already exists in the 
         metadata store and is different than RHESSysMetadata._workflowVersion
     """
     super(Context, self).__init__(projectDir, configFile)
     RHESSysMetadata.checkWorkflowVersion(projectDir)
Ejemplo n.º 2
0
 def __init__(self, projectDir, configFile=None):
     """ Constructor for Context class
     
         @param projectDir Path of the project whose metadata store is to be read from
         @param configFile Path of rhessysworkflow configuration file to use.  If none,
         will attempt to read configuration from a file named in the environment
         variable ecohydrolib.context.Context.CONFIG_FILE_ENV
         
         @raise WorkflowVersionError if a version already exists in the 
         metadata store and is different than RHESSysMetadata._workflowVersion
     """
     super(Context, self).__init__(projectDir, configFile)
     RHESSysMetadata.checkWorkflowVersion(projectDir)