Skip to content

Commit d204c2c

Browse files
committed
fix abbreviated forecasts
1 parent 1a631ef commit d204c2c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ def generate_page(n_intervals):
766766
df_hm["hour"] = df_hm["datetime"].apply(lambda x: x.hour)
767767

768768
square_index = list(reversed(df_hm["dow"].unique().tolist()))
769-
hours_index = [2, 5, 8, 11, 14, 17, 20, 23]
769+
hours_index = [0, 3, 6, 9, 12, 15, 18, 21]
770770

771771
df_square_statuses = pd.DataFrame("no status", columns=hours_index, index=square_index)
772772
df_square_ints = pd.DataFrame(np.nan, columns=hours_index, index=square_index)
@@ -791,6 +791,8 @@ def generate_page(n_intervals):
791791
#
792792
# figh = go.Figure(data=heatmap)
793793

794+
print("df_square_ints")
795+
print(df_square_ints)
794796

795797

796798
figh = ff.create_annotated_heatmap(
@@ -873,7 +875,7 @@ def generate_page(n_intervals):
873875
pd.set_option('display.max_rows', 500)
874876
pd.set_option('display.max_columns', 500)
875877
pd.set_option('display.width', 1000)
876-
# app.run_server(debug=True, port=SERVER_PORT)
878+
#app.run_server(debug=True, port=SERVER_PORT)
877879
app.run_server(debug=False, host="0.0.0.0", port=SERVER_PORT)
878880

879881

0 commit comments

Comments
 (0)