Skip to content

Commit

Permalink
Fix bug with parsing EPW
Browse files Browse the repository at this point in the history
  • Loading branch information
mbadams5 committed Dec 27, 2021
1 parent b03bdf0 commit c3755b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/EnergyPlus/WeatherManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3651,7 +3651,7 @@ namespace WeatherManager {
}
} else {
bool error = false;
DaysSinceLastSnow = UtilityRoutines::ProcessNumber(Line, error);
DaysSinceLastSnow = UtilityRoutines::ProcessNumber(current_line.substr(0, pos), error);
if (error) {
ErrorInterpretWeatherDataLine(state, WYear, WMonth, WDay, WHour, WMinute, Line, current_line);
}
Expand All @@ -3660,7 +3660,7 @@ namespace WeatherManager {
}
} else {
bool error = false;
SnowDepth = UtilityRoutines::ProcessNumber(Line, error);
SnowDepth = UtilityRoutines::ProcessNumber(current_line.substr(0, pos), error);
if (error) {
ErrorInterpretWeatherDataLine(state, WYear, WMonth, WDay, WHour, WMinute, Line, current_line);
}
Expand All @@ -3670,7 +3670,7 @@ namespace WeatherManager {
}
} else {
bool error = false;
AerosolOptDepth = UtilityRoutines::ProcessNumber(Line, error);
AerosolOptDepth = UtilityRoutines::ProcessNumber(current_line.substr(0, pos), error);
if (error) {
ErrorInterpretWeatherDataLine(state, WYear, WMonth, WDay, WHour, WMinute, Line, current_line);
}
Expand All @@ -3681,7 +3681,7 @@ namespace WeatherManager {
}
} else {
bool error = false;
PrecipWater = UtilityRoutines::ProcessNumber(Line, error);
PrecipWater = UtilityRoutines::ProcessNumber(current_line.substr(0, pos), error);
if (error) {
ErrorInterpretWeatherDataLine(state, WYear, WMonth, WDay, WHour, WMinute, Line, current_line);
}
Expand Down

4 comments on commit c3755b9

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix_9161 (mbadams5) - x86_64-MacOS-10.15-clang-11.0.0: OK (3192 of 3192 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix_9161 (mbadams5) - x86_64-Linux-Ubuntu-18.04-gcc-7.5: OK (3233 of 3233 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix_9161 (mbadams5) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-UnitTestsCoverage-Debug: OK (1719 of 1719 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix_9161 (mbadams5) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-IntegrationCoverage-Debug: OK (740 of 740 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.