From fc7c1cdb960e173930c2be561a9bfe6dd68a7110 Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Wed, 15 Nov 2023 22:39:15 +0100 Subject: [PATCH] Fixup patching old reporting measure: tests now pass --- src/workflow/ApplyMeasure.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/workflow/ApplyMeasure.cpp b/src/workflow/ApplyMeasure.cpp index 9a57fc0da06..b60feb89b54 100644 --- a/src/workflow/ApplyMeasure.cpp +++ b/src/workflow/ApplyMeasure.cpp @@ -246,13 +246,13 @@ void OSWorkflow::applyMeasures(MeasureType measureType, bool energyplus_output_r LOG(Warn, msg); auto patchArgumentsCmd = fmt::format(R"ruby( module {0}Extensions - def arguments(model) + def arguments(model=nil) super() end end class {0} - prepend {0}Extensions # the only change to above: prepend instead of include + prepend {0}Extensions end )ruby", className);