Skip to content

Commit acccf5f

Browse files
committed
update cfg
1 parent 349fc0e commit acccf5f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ignore =
5959
profile = black
6060
default_section = THIRDPARTY
6161
known_first_party = sgkit
62-
known_third_party = dask,fire,glow,hail,hypothesis,invoke,msprime,numpy,pandas,pkg_resources,pyspark,pytest,setuptools,sgkit_plink,xarray,yaml,zarr
62+
known_third_party = dask,fire,glow,hail,hypothesis,invoke,msprime,numba,numpy,pandas,pkg_resources,pyspark,pytest,setuptools,sgkit_plink,xarray,yaml,zarr
6363
multi_line_output = 3
6464
include_trailing_comma = True
6565
force_grid_wrap = 0

sgkit/stats/popgen.py

-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def diversity(
1717
n_pairs = an * (an - 1) / 2
1818
n_same = (ac * (ac - 1) / 2).sum(axis=1)
1919
n_diff = n_pairs - n_same
20-
# Let's ignore missing data and division by zero for now.
2120
pi = n_diff / n_pairs
2221
# Because we're not providing any arguments on windowing, etc,
2322
# we return the total over the whole region. Maybe this isn't
@@ -45,7 +44,6 @@ def divergence(
4544
n_pairs = an1 * an2
4645
n_same = (ac1 * ac2).sum(axis=1)
4746
n_diff = n_pairs - n_same
48-
# Ignore missing data and division by zero for now.
4947
div = n_diff / n_pairs
5048
return div.sum() # type: ignore[no-any-return]
5149

0 commit comments

Comments
 (0)