Skip to content

Commit 894bf73

Browse files
committed
lint
1 parent 58c3491 commit 894bf73

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

python/tests/test_tree_stats.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,25 @@
4848
# Notes for refactoring:
4949
#
5050
# Things we need to test here are:
51-
# 1. general_stat: correctly uses summary functions
52-
# 2. general_stat: branch mode, correctness
53-
# 3. general_stat: site mode, correctness
54-
# 4. general_stat: node mode, correctness
55-
# 5. sample sets: correctness
56-
# 6. indexes: correctness
57-
# 7. genome windowing: correctness
58-
# 8. time windowing: correctness
59-
# 9. dropping dimensions, output
60-
# 10. span normalise
51+
# First, for general_stat, AFS, relatedness_matrix, and a few others:
52+
# 1. branch mode, correctness
53+
# 2. site mode, correctness
54+
# 3. node mode, correctness
55+
# 4. sample sets: correctness
56+
# 5. indexes: correctness
57+
# 6. genome windowing: correctness
58+
# 7. time windowing: correctness
59+
# 8. dropping dimensions, output
60+
# 9. span normalise, correctness
61+
# And, more specifically:
62+
# 10. general_stat: correctly uses summary functions
6163
# 11. sample_count_stat: correctly uses summary functions
6264
# 12. each statistic: a single tree sufficies, with edge cases
6365
# a. agrees with naive version, polarised and not;
6466
# b. agrees with python version, polarised and not;
6567
# c. stat-specific options (eg centre)
6668

69+
6770
def cached_np(func):
6871
"""
6972
Decorator to speed up functions that take numpy arrays as positional

python/tskit/trees.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8022,7 +8022,7 @@ def __one_way_sample_set_stat(
80228022
raise ValueError("Sample sets must contain at least one element")
80238023

80248024
flattened = util.safe_np_int_cast(np.hstack(sample_sets), np.int32)
8025-
use_tw = (ll_method.__name__ == "allele_frequency_spectrum")
8025+
use_tw = ll_method.__name__ == "allele_frequency_spectrum"
80268026
if use_tw:
80278027
stat = self.__run_windowed_stat_tw(
80288028
windows,

0 commit comments

Comments
 (0)