Revision history [back]
An easier way would be to create an OpenStudio measure with the following in the run
method:
model.getOutputTableSummaryReports.addSummaryReport("ZoneComponentLoadSummary")
Your EnergyPlus model is adding a new instance of the Output:Table:SummaryReports object (with workspace.addObject
) which EnergyPlus doens't like because there should only be one.
With your EnergyPlus measure, you would do this by getting the object and changing it with:
obj = workspace.getObjectsByType("Output:Table:SummaryReports".to_IddObjectType)[0]
obj.setString(0,"ZoneComponentLoadSummary")
An easier way would be to create an OpenStudio measure with the following in the run
method:
model.getOutputTableSummaryReports.addSummaryReport("ZoneComponentLoadSummary")
Your EnergyPlus model is adding a new instance of the Output:Table:SummaryReports object (with workspace.addObject
) which EnergyPlus doens't like because there should only be one.
With your EnergyPlus measure, you would do this by getting the object and changing it with:
obj = workspace.getObjectsByType("Output:Table:SummaryReports".to_IddObjectType)[0]
workspace.getObjectsByType("Output:Table:SummaryReports".to_IddObjectType")[0]
obj.setString(0,"ZoneComponentLoadSummary")