def getEnergyPlusObjectsFromFile(self, epFilePath):
"""
Parse EnergyPlus file and return a list of radiance objects as separate strings
TODO: Create a class for each EnergyPlus object and return Python objects
instead of strings
Args:
epFilePath: Path to EnergyPlus file
Returns:
A list of strings. Each string represents a differnt Rdiance Object
Usage:
getEnergyPlusObjectsFromFile(r"C:\ladybug\21MAR900\imageBasedSimulation\21MAR900.rad")
"""
if not os.path.isfile(epFilePath):
raise ValueError("Can't find %s."%epFilePath)
with open(epFilePath, "r") as epFile:
return self.getEnergyPlusObjectsFromString("".join(epFile.readlines()))
评论列表
文章目录