Skip to content

Commit 2d85d2e

Browse files
committed
Better typing.
1 parent 1d257fc commit 2d85d2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

malariagen_data/anoph/hap_freq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def haplotypes_frequencies(
9595
cohorts_iterator = self._progress(
9696
coh_dict.items(), desc="Compute allele frequencies"
9797
)
98-
hap_track: dict[np.int64, int] = {}
98+
hap_track: dict[np.int64, float] = {}
9999
for coh, loc_coh in cohorts_iterator:
100100
hap_track = {k: 0 for k in hap_track.keys()}
101101
n_samples = np.count_nonzero(loc_coh)
@@ -201,7 +201,7 @@ def haplotypes_frequencies_advanced(
201201
gt = gt.compute()
202202

203203
# Count haplotypes.
204-
hap_freq: dict[np.int64, int] = dict()
204+
hap_freq: dict[np.int64, float] = dict()
205205
hap_count: dict[np.int64, int] = dict()
206206
hap_nob: dict[np.int64, int] = dict()
207207
freq_cols = dict()

0 commit comments

Comments
 (0)