From f602aa636cd6956bc960894b0a6357ca331ca77b Mon Sep 17 00:00:00 2001 From: DavidGoldwasser Date: Fri, 16 May 2014 12:11:47 -0600 Subject: [PATCH] Updated calibration measure for core Alex, can you pull this into iteration installer. I'll file a bug about bad XML here and in measure repo, but doesn't seem to affect functionality in app with installed measure. --- .../Resources/measures/CalibrationReports/measure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstudiocore/src/openstudio_app/Resources/measures/CalibrationReports/measure.rb b/openstudiocore/src/openstudio_app/Resources/measures/CalibrationReports/measure.rb index 88ac6d45918..14b57914a20 100644 --- a/openstudiocore/src/openstudio_app/Resources/measures/CalibrationReports/measure.rb +++ b/openstudiocore/src/openstudio_app/Resources/measures/CalibrationReports/measure.rb @@ -283,7 +283,7 @@ def run(runner, user_arguments) end modelPeakDemand << "," - if not billingPeriod.peakDemand.empty? and not billingPeriod.modelPeakDemand.empty? and not billingPeriod.consumption.get == 0 + if not billingPeriod.peakDemand.empty? and not billingPeriod.modelPeakDemand.empty? and not billingPeriod.peakDemand.get == 0 percent = 100 * ((billingPeriod.modelPeakDemand.get / 1000) - billingPeriod.peakDemand.get) / billingPeriod.peakDemand.get percent_str = sprintf "%.2f", percent demandNMBE << percent_str.to_s