Skip to content

Commit 789bb43

Browse files
committed
debug
1 parent 1353118 commit 789bb43

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

observer/weather/ForecastDisplay.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ def update(self, temp: float, humidity: float, pressure: float) -> None:
1818
self.display()
1919

2020
def display(self) -> None:
21+
print("Forecast: ", end="")
2122
if self.__currentPressure > self.__lastPressure:
2223
print("Improving weather on the way!")
2324
elif self.__currentPressure == self.__lastPressure:
24-
print("More of the same")
25+
print("Forecast: More of the same")
2526
elif self.__currentPressure < self.__lastPressure:
2627
print("Watch out for cooler, rainy weather")

observer/weather/WeatherStation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def main(*args):
1414
forecastDisplay: ForecastDisplay = ForecastDisplay(weatherData)
1515

1616
weatherData.setMeasurements(80.0, 65.0, 30.4)
17-
weatherData.setMeasurements(80.0, 70.0, 29.2)
17+
weatherData.setMeasurements(82.0, 70.0, 29.2)
1818
weatherData.setMeasurements(78.0, 90.0, 29.2)
1919

2020
weatherData.removeObserver(forecastDisplay)

observer/weather/WeatherStationHeatIndex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def main(*args):
1515
heatIndexDisplay: HeatIndexDisplay = HeatIndexDisplay(weatherData)
1616

1717
weatherData.setMeasurements(80.0, 65.0, 30.4)
18-
weatherData.setMeasurements(80.0, 70.0, 29.2)
18+
weatherData.setMeasurements(82.0, 70.0, 29.2)
1919
weatherData.setMeasurements(78.0, 90.0, 29.2)
2020

2121

1.41 KB
Loading
-1.05 KB
Loading

0 commit comments

Comments
 (0)