diff --git a/src/utilities/filetypes/EpwFile.cpp b/src/utilities/filetypes/EpwFile.cpp index 3e6098fd05..f0f3020f7d 100644 --- a/src/utilities/filetypes/EpwFile.cpp +++ b/src/utilities/filetypes/EpwFile.cpp @@ -3962,13 +3962,6 @@ bool EpwFile::parse(std::istream& ifs, bool storeData) { } epw_string epw_s = {lineNumber, year, month, day, hour, currentMinute, strings}; epw_strings.push_back(epw_s); - /* boost::optional pt = EpwDataPoint::fromEpwStrings(year, month, day, hour, currentMinute, strings); */ - /* if (pt) { - m_data.push_back(pt.get()); - } else { - LOG(Error, "Failed to parse line " << lineNumber << " of EPW file '" << m_path << "'"); - return false; - } */ } } catch (...) { diff --git a/src/utilities/filetypes/test/EpwFile_GTest.cpp b/src/utilities/filetypes/test/EpwFile_GTest.cpp index 21d834e105..5ac5c14b72 100644 --- a/src/utilities/filetypes/test/EpwFile_GTest.cpp +++ b/src/utilities/filetypes/test/EpwFile_GTest.cpp @@ -533,7 +533,7 @@ TEST(Filetypes, EpwFile_LeapTimeSeries_AMYNoLeapDay) { boost::optional _t; ASSERT_NO_THROW(_t = epwFile.getTimeSeries("Dry Bulb Temperature")); ASSERT_TRUE(_t); - // even though this is AMY, the lack of Feb29 causes it to be TMY + // even though this is AMY, the lack of Feb 29 causes it to be TMY (i.e., successive datapoints greater than 1 day) boost::optional _timeSeriesBaseYear = _t->firstReportDateTime().date().baseYear(); EXPECT_FALSE(_timeSeriesBaseYear); } catch (...) { @@ -565,7 +565,7 @@ TEST(Filetypes, EpwFile_LeapTimeSeries_TMYLeapFebLeapDay) { EpwFile epwFile(p); boost::optional _t; _t = epwFile.getTimeSeries("Dry Bulb Temperature"); - ASSERT_TRUE(false); + ASSERT_TRUE(false); // we don't hit this because we expect getTimeSeries to fail } catch (...) { ASSERT_TRUE(true); }