Skip to content

Commit

Permalink
saving minor edits.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonleandergrimm committed May 29, 2024
1 parent a9fa925 commit 4587a3c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions figures/composite_fig_2.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import csv
import sys as sys

sys.path.append("..")

import datetime as dt
from dataclasses import dataclass

import matplotlib as mpl # type: ignore
import matplotlib.dates as mdates # type: ignore
import matplotlib.pyplot as plt # type: ignore
import matplotlib.ticker as mticker # type: ignore
import sys as sys
import numpy as np
import pandas as pd
from matplotlib.gridspec import GridSpec # type: ignore
import sys as sys

import mgs
import pathogens
Expand Down Expand Up @@ -40,7 +33,6 @@ def get_averaged_incidence(df, pathogen_name):
).people,
axis=1,
)

incidence = np.average(group["incidence"], weights=weights)
averaged_incidence.append((date, incidence))

Expand Down

0 comments on commit 4587a3c

Please sign in to comment.