Skip to content

Commit

Permalink
Try a different variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Jun 4, 2024
1 parent 5017a02 commit 2523e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/utilities/filetypes/EpwFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3630,7 +3630,7 @@ std::vector<EpwDesignCondition> EpwFile::designConditions() {
return m_designs;
}

boost::optional<TimeSeries> EpwFile::getTimeSeries(const std::string& name, bool isActual) {
boost::optional<TimeSeries> EpwFile::getTimeSeries(const std::string& name, bool isActualOverride) {
if (m_data.empty()) {
if (!openstudio::filesystem::exists(m_path) || !openstudio::filesystem::is_regular_file(m_path)) {
LOG_AND_THROW("Path '" << m_path << "' is not an EPW file");
Expand Down Expand Up @@ -3666,8 +3666,8 @@ boost::optional<TimeSeries> EpwFile::getTimeSeries(const std::string& name, bool
// Time time=m_data[i].time();
boost::optional<double> value = m_data[i].getField(id);
if (value) {
if (isActual() || isActual) {
dates.push_back(DateTime(dateTime));
if (isActual() || isActualOverride) {
dates.push_back(DateTime(dateTime));
} else {
// Strip year
dates.push_back(DateTime(Date(dateTime.date().monthOfYear(), dateTime.date().dayOfMonth()), dateTime.time()));
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/filetypes/EpwFile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ class UTILITIES_API EpwFile

/// get a time series of a particular weather field
// This will probably need to include the period at some point, but for now just dump everything into a time series
boost::optional<TimeSeries> getTimeSeries(const std::string& field, bool isActual = false);
boost::optional<TimeSeries> getTimeSeries(const std::string& field, bool isActualOverride = false);
/// get a time series of a computed quantity
boost::optional<TimeSeries> getComputedTimeSeries(const std::string& field);

Expand Down

0 comments on commit 2523e6e

Please sign in to comment.