Skip to content

Commit

Permalink
Remove unneeded if
Browse files Browse the repository at this point in the history
  • Loading branch information
nspope committed Apr 10, 2024
1 parent c323de2 commit 272552b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/tskit/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -9479,8 +9479,7 @@ def pair_coalescence_counts(
coalescing_pairs[:, :, i] /= 2

Check warning on line 9479 in python/tskit/trees.py

View check run for this annotation

Codecov / codecov/patch

python/tskit/trees.py#L9479

Added line #L9479 was not covered by tests
if span_normalise:
for w, s in enumerate(np.diff(windows)):
if s > 0:
coalescing_pairs[w] /= s
coalescing_pairs[w] /= s

Check warning on line 9482 in python/tskit/trees.py

View check run for this annotation

Codecov / codecov/patch

python/tskit/trees.py#L9482

Added line #L9482 was not covered by tests

if drop_right_dimension:
coalescing_pairs = coalescing_pairs[..., 0]

Check warning on line 9485 in python/tskit/trees.py

View check run for this annotation

Codecov / codecov/patch

python/tskit/trees.py#L9485

Added line #L9485 was not covered by tests
Expand Down

0 comments on commit 272552b

Please sign in to comment.