| 10 | namespace openstudio { |
| 11 | |
| 12 | void OSWorkflow::runPostProcess() { |
| 13 | state = State::PostProcess; |
| 14 | |
| 15 | if (!workflowJSON.runOptions()->fast()) { |
| 16 | LOG(Info, "Gathering reports"); |
| 17 | openstudio::workflow::util::gatherReports(workflowJSON.absoluteRunDir(), workflowJSON.absoluteRootDir()); |
| 18 | LOG(Info, "Finished gathering reports"); |
| 19 | } |
| 20 | // If no points have been exported, skip file creation |
| 21 | if (!runner.alfalfa().points().empty()) { |
| 22 | LOG(Info, "Saving Alfalfa points"); |
| 23 | auto savePath = workflowJSON.absoluteRunDir() / "alfalfa.json"; |
| 24 | runner.alfalfa().saveAs(savePath); |
| 25 | LOG(Info, "Finished saving Alfalfa points"); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | } // namespace openstudio |
nothing calls this directly
no test coverage detected