MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / communicateMeasureAttributes

Method communicateMeasureAttributes

src/workflow/OSWorkflow.cpp:576–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576void OSWorkflow::communicateMeasureAttributes() const {
577
578 const Json::Value root = outputAttributesToJSON(output_attributes, false);
579 Json::StreamWriterBuilder wbuilder;
580 // mimic the old StyledWriter behavior:
581 wbuilder["indentation"] = " ";
582
583 const std::string result = Json::writeString(wbuilder, root);
584
585 auto jsonPath = workflowJSON.absoluteRunDir() / "measure_attributes.json";
586 openstudio::filesystem::ofstream file(jsonPath);
587 OS_ASSERT(file.is_open());
588 file << result;
589 file.close();
590}
591
592void OSWorkflow::runExtractInputsAndOutputs() const {
593 const Json::Value results = outputAttributesToJSON(output_attributes, true);

Callers

nothing calls this directly

Calls 3

outputAttributesToJSONFunction · 0.85
absoluteRunDirMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected