本文整理汇总了Python中eppy.modeleditor.IDF.run方法的典型用法代码示例。如果您正苦于以下问题:Python IDF.run方法的具体用法?Python IDF.run怎么用?Python IDF.run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eppy.modeleditor.IDF
的用法示例。
在下文中一共展示了IDF.run方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_reproduce_run_issue
# 需要导入模块: from eppy.modeleditor import IDF [as 别名]
# 或者: from eppy.modeleditor.IDF import run [as 别名]
def test_reproduce_run_issue():
"""This is for use as a debugging tool.
Add the files used in the run as reported/provided by a user.
Make any additional changes required for reproducing/diagnosing the issue.
"""
# update the following four lines if necessary
ep_version = "8-9-0"
idffile = "V8_9/smallfile.idf"
iddfile = "Energy+V8_9_0.idd"
epwfile = "USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw"
_, eplus_home = paths_from_version(ep_version)
idfname = os.path.join(IDF_FILES, idffile)
iddfile = os.path.join(IDD_FILES, iddfile)
epwfile = os.path.join(eplus_home, "WeatherData", epwfile)
modeleditor.IDF.setiddname(iddfile, testing=True)
idf = IDF(idfname, epwfile)
# make any changes to the IDF here
try:
# Add any additional `run` kwargs here
# `ep_version` kwarg is required due to buggy test isolation
idf.run(output_directory="test_dir", ep_version=ep_version)
# Add any tests for expected/unexpected outputs here
except Exception:
# Add any tests for expected/unexpected exceptions here
raise
finally:
shutil.rmtree("test_dir", ignore_errors=True)
示例2: IDF
# 需要导入模块: from eppy.modeleditor import IDF [as 别名]
# 或者: from eppy.modeleditor.IDF import run [as 别名]
from eppy.modeleditor import IDF
iddfile = "/Applications/EnergyPlus-8-8-0/Energy+.idd"
IDF.setiddname(iddfile)
idfname = "/Users/bhabalaj/Repositories/COML/pyEp/pyEp/pyEp/example_buildings/LargeOffice/LargeOfficeFUN.idf"
epwfile = "/Users/bhabalaj/Repositories/COML/pyEp/pyEp/SPtMasterTable_587017_2012_amy.epw"
idf = IDF(idfname, epwfile)
idf.run()