From b4fb5dd2994870eb4f7822492adeb60ec4e1fb19 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 4 Mar 2025 12:04:59 +0100 Subject: [PATCH] Fix last bin of the day --- scripts/plotly_streamlit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/plotly_streamlit.py b/scripts/plotly_streamlit.py index b122703..b7bd3de 100755 --- a/scripts/plotly_streamlit.py +++ b/scripts/plotly_streamlit.py @@ -268,7 +268,7 @@ if daily is False: detections2 = pd.crosstab(df3, df3.index.hour) - d = pd.DataFrame(np.zeros((23, 1))).squeeze() + d = pd.DataFrame(np.zeros((24, 1))).squeeze() detections = hourly.loc[specie] detections = (d + detections).fillna(0) fig.add_trace(go.Barpolar(r=detections, theta=theta, marker_color='seagreen'), row=1, col=2)