Skip to content

Commit

Permalink
Updated calibration measure for core
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DavidGoldwasser committed May 16, 2014
1 parent 57ade48 commit f602aa6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f602aa6

Please sign in to comment.