Skip to content

Commit 1b9a40d

Browse files
authored
Update nyc_forecast_owm.py
1 parent 63f4503 commit 1b9a40d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

chapter2/solutions/nyc_forecast_owm.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,13 @@ def get_forecast(city):
2626
utc_dt = datetime.utcfromtimestamp(w.get_reference_time()).replace(tzinfo=pytz.utc)
2727
tz = pytz.timezone('America/New_York')
2828
dt = utc_dt.astimezone(tz)
29-
30-
# print it
3129
date_time.append(dt.strftime('%Y-%m-%d %H:%M'))
3230
temp.append(forecast_temp['temp'])
3331
x = range(1, len(temp)+1)
3432
plt.plot(x, temp, 'o-')
3533
plt.xticks(x, date_time, rotation=45)
3634
plt.show()
3735

38-
if __name__ == '__main__':
39-
get_forecast('new york, us')
4036

4137
if __name__ == '__main__':
4238
get_forecast('new york, us')

0 commit comments

Comments
 (0)