本文整理汇总了Python中ert.enkf.enkf_main.EnKFMain.analysis_config方法的典型用法代码示例。如果您正苦于以下问题:Python EnKFMain.analysis_config方法的具体用法?Python EnKFMain.analysis_config怎么用?Python EnKFMain.analysis_config使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ert.enkf.enkf_main.EnKFMain
的用法示例。
在下文中一共展示了EnKFMain.analysis_config方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_ecl_config_creation
# 需要导入模块: from ert.enkf.enkf_main import EnKFMain [as 别名]
# 或者: from ert.enkf.enkf_main.EnKFMain import analysis_config [as 别名]
def test_ecl_config_creation(self):
with self.assertRaises(NotImplementedError):
ecl_config = EclConfig()
with TestAreaContext("enkf_library_test") as work_area:
work_area.copy_directory(self.case_directory)
main = EnKFMain("simple_config/minimum_config", self.site_config)
self.assertIsInstance(main.analysis_config(), AnalysisConfig)
self.assertIsInstance(main.ecl_config(), EclConfig)
with self.assertRaises(AttributeError):
self.assertIsInstance(main.ecl_config().get_refcase(), EclSum)
time_map = main.get_fs().get_time_map()
self.assertIsInstance(time_map, TimeMap)
del main
示例2: test_config
# 需要导入模块: from ert.enkf.enkf_main import EnKFMain [as 别名]
# 或者: from ert.enkf.enkf_main.EnKFMain import analysis_config [as 别名]
def test_config( self ):
with TestAreaContext("enkf_test") as work_area:
work_area.copy_directory(self.case_directory)
main = EnKFMain("simple_config/minimum_config", self.site_config_file)
self.assertIsInstance(main.ensembleConfig(), EnsConfig)
self.assertIsInstance(main.analysis_config(), AnalysisConfig)
self.assertIsInstance(main.getModelConfig(), ModelConfig)
#self.assertIsInstance(main.local_config(), LocalConfig) #warn: Should this be None?
self.assertIsInstance(main.siteConfig(), SiteConfig)
self.assertIsInstance(main.ecl_config(), EclConfig)
self.assertIsInstance(main.plot_config(), PlotConfig)
# self.main.load_obs(obs_config_file)
self.assertIsInstance(main.get_obs(), EnkfObs)
self.assertIsInstance(main.get_templates(), ErtTemplates)
self.assertIsInstance(main.getFileSystem(), EnkfFs)
# self.assertIsInstance(main.iget_member_config(0), MemberConfig)
self.assertIsInstance(main.getMemberRunningState(0), EnKFState)
del main