Skip to content

Commit feaee7a

Browse files
committed
Fix plot_frequencies_time_series reading wrong cohort after filtering (fixes #827)
1 parent cb60297 commit feaee7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

malariagen_data/anoph/frq_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def plot_frequencies_time_series(
386386
# Build a long-form dataframe from the dataset.
387387
dfs = []
388388
for cohort_index, cohort in enumerate(df_cohorts.itertuples()):
389-
ds_cohort = ds.isel(cohorts=cohort_index)
389+
ds_cohort = ds.isel(cohorts=cohort.Index)
390390
df = pd.DataFrame(
391391
{
392392
"taxon": cohort.taxon,

0 commit comments

Comments
 (0)