Skip to content

Commit

Permalink
Adjust timing for updating the lastEPWFile
Browse files Browse the repository at this point in the history
ref #5009
  • Loading branch information
kbenne committed Nov 1, 2023
1 parent c5219a5 commit 100167e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 1 addition & 8 deletions src/workflow/ApplyMeasure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,7 @@ void OSWorkflow::applyMeasures(MeasureType measureType, bool energyplus_output_r
}

if (measureType == MeasureType::ModelMeasure) {
if (auto weatherFile_ = model.weatherFile()) {
if (auto p_ = weatherFile_->path()) {
// Probably a workflowJSON.findFile() call...
// m_epwPath_ = p_;
} else {
LOG(Warn, "Weather file object found in model but no path is given");
}
}
updateLastWeatherFileFromModel();
}

if (m_add_timings && m_detailed_timings) {
Expand Down
2 changes: 0 additions & 2 deletions src/workflow/RunTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ void OSWorkflow::runTranslator() {
auto runDir = workflowJSON.absoluteRunDir();
OS_ASSERT(openstudio::filesystem::is_directory(runDir));

updateLastWeatherFileFromModel();

// Copy in the weather file
if (!epwPath.empty()) {
openstudio::filesystem::copy_file(epwPath, runDir / "in.epw", openstudio::filesystem::copy_options::overwrite_existing);
Expand Down

0 comments on commit 100167e

Please sign in to comment.