Skip to content

Commit 95d0c3a

Browse files
Jon BrenasJon Brenas
authored andcommitted
Moved the taxa thing
1 parent 67d5667 commit 95d0c3a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

malariagen_data/anoph/sample_metadata.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,8 @@ def plot_samples_interactive_map(
971971
fill_value=0,
972972
)
973973

974+
taxa = df_pivot.columns.dropna().sort_values().unique()
975+
974976
# Append aggregations to pivot.
975977
df_location_aggs = df_samples.groupby(location_composite_key).agg(
976978
{
@@ -1015,11 +1017,6 @@ def plot_samples_interactive_map(
10151017
samples_map.layout.width = width
10161018

10171019
# Add markers.
1018-
taxa = [
1019-
c
1020-
for c in df_pivot.columns.dropna().sort_values().unique()
1021-
if c not in ["year", "sample_set", "contributor"]
1022-
]
10231020
for _, row in df_pivot.reset_index().iterrows():
10241021
title = (
10251022
f"Location: {row.location} ({row.latitude:.3f}, {row.longitude:.3f})"

0 commit comments

Comments
 (0)