當前位置: 首頁>>代碼示例>>Python>>正文


Python EnvBase.__init__方法代碼示例

本文整理匯總了Python中CIME.XML.env_base.EnvBase.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python EnvBase.__init__方法的具體用法?Python EnvBase.__init__怎麽用?Python EnvBase.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CIME.XML.env_base.EnvBase的用法示例。


在下文中一共展示了EnvBase.__init__方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
 def __init__(self, case_root=None, infile="env_batch.xml"):
     """
     initialize an object interface to file env_batch.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile)
     self.prereq_jobid = None
     self.batchtype = None
開發者ID:ekluzek,項目名稱:cime,代碼行數:9,代碼來源:env_batch.py

示例2: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
 def __init__(self, case_root=None, infile="env_mach_pes.xml", components=None):
     """
     initialize an object interface to file env_mach_pes.xml in the case directory
     """
     self._components = components
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_mach_pes.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)
開發者ID:apcraig,項目名稱:cime,代碼行數:9,代碼來源:env_mach_pes.py

示例3: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
    def __init__(self, case_root=None, infile="env_run.xml", components=None, read_only=False):
        """
        initialize an object interface to file env_run.xml in the case directory
        """
        self._components = components
        schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_entry_id.xsd")

        EnvBase.__init__(self, case_root, infile, schema=schema, read_only=read_only)
開發者ID:fischer-ncar,項目名稱:cime,代碼行數:10,代碼來源:env_run.py

示例4: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
 def __init__(self, caseroot, infile="env_mach_specific.xml"):
     """
     initialize an object interface to file env_mach_specific.xml in the case directory
     """
     fullpath = infile if os.path.isabs(infile) else os.path.join(caseroot, infile)
     EnvBase.__init__(self, caseroot, fullpath)
     self._cshscript = []
     self._shscript = []
開發者ID:quantheory,項目名稱:cime,代碼行數:10,代碼來源:env_mach_specific.py

示例5: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
 def __init__(self, case_root=None, infile="env_batch.xml"):
     """
     initialize an object interface to file env_batch.xml in the case directory
     """
     self._batchtype = None
     # This arbitrary setting should always be overwritten
     self._default_walltime = "00:20:00"
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_batch.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)
開發者ID:Katetc,項目名稱:cime,代碼行數:11,代碼來源:env_batch.py

示例6: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
 def __init__(self, caseroot=None, infile="env_mach_specific.xml",
              components=None, unit_testing=False):
     """
     initialize an object interface to file env_mach_specific.xml in the case directory
     """
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_mach_specific.xsd")
     EnvBase.__init__(self, caseroot, infile, schema=schema)
     self._allowed_mpi_attributes = ("compiler", "mpilib", "threaded", "unit_testing")
     self._unit_testing = unit_testing
開發者ID:apcraig,項目名稱:cime,代碼行數:11,代碼來源:env_mach_specific.py

示例7: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
 def __init__(self, case_root=None, infile="env_batch.xml"):
     """
     initialize an object interface to file env_batch.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile)
     self.prereq_jobid = None
     self.batchtype = None
     # This arbitrary setting should always be overwritten
     self._default_walltime = "00:20:00"
開發者ID:cacraigucar,項目名稱:cime-cacraig,代碼行數:11,代碼來源:env_batch.py

示例8: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
 def __init__(self, case_root=None, infile="env_build.xml"):
     """
     initialize an object interface to file env_build.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile)
開發者ID:cacraigucar,項目名稱:cime-cacraig,代碼行數:7,代碼來源:env_build.py

示例9: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
 def __init__(self, case_root=None, infile="env_archive.xml"):
     """
     initialize an object interface to file env_archive.xml in the case directory
     """
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_archive.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)
開發者ID:Katetc,項目名稱:cime,代碼行數:8,代碼來源:env_archive.py

示例10: __init__

# 需要導入模塊: from CIME.XML.env_base import EnvBase [as 別名]
# 或者: from CIME.XML.env_base.EnvBase import __init__ [as 別名]
 def __init__(self, case_root=None, infile="env_test.xml", components=None, read_only=False):
     """
     initialize an object interface to file env_test.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile, read_only=read_only)
開發者ID:fischer-ncar,項目名稱:cime,代碼行數:7,代碼來源:env_test.py


注:本文中的CIME.XML.env_base.EnvBase.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。