Skip to content

Commit

Permalink
Fixup patching old reporting measure: tests now pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Nov 15, 2023
1 parent c0c5ae7 commit fc7c1cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/workflow/ApplyMeasure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fc7c1cd

Please sign in to comment.