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

Function loadIDF

src/workflow/Util.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57Workspace loadIDF(const openstudio::filesystem::path& idfPath) {
58 LOG_FREE(Info, "openstudio.worklow.Util", "Loading IDF workspace");
59 LOG_FREE(Info, "openstudio.worklow.Util", "Reading in IDF workspace " << idfPath);
60
61 auto idf_ = Workspace::load(idfPath);
62 if (!idf_) {
63 throw std::runtime_error(fmt::format("Failed to load IDF file {}\n", openstudio::toString(idfPath)));
64 }
65 return idf_.get();
66};
67
68void gatherReports(const openstudio::filesystem::path& runDirPath, const openstudio::filesystem::path& rootDirPath) {
69 namespace fs = openstudio::filesystem;

Callers 2

runReportingMeasuresMethod · 0.85
runInitializationMethod · 0.85

Calls 2

toStringFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected