Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 29, 2024
1 parent e0f1662 commit 1d01612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/utils/interactive_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

ALL_HOURS = list(range(24))


def load_fonts():
conf = get_settings()
# Define font families based on language settings
Expand All @@ -45,6 +46,7 @@ def load_fonts():
else:
return 'Roboto Flex'


def normalize_logarithmic(arr):
"""Applies a logarithmic normalization to the array, mapping values between 0.5 and max(arr) to a normalized scale between 0 and 1."""
arr = arr.astype(float)
Expand Down Expand Up @@ -85,7 +87,7 @@ def create_plotly_heatmap(df_birds, now):
"""Creates a Plotly heatmap with annotations based on bird detection data."""

font_family = load_fonts()

main_title = f"Hourly Overview Updated at {now.strftime('%Y-%m-%d %H:%M:%S')}"
subtitle = f"({df_birds['Com_Name'].nunique()} species today; {len(df_birds)} detections today)"

Expand Down

0 comments on commit 1d01612

Please sign in to comment.