|
48 | 48 | # Notes for refactoring: |
49 | 49 | # |
50 | 50 | # 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 |
61 | 63 | # 11. sample_count_stat: correctly uses summary functions |
62 | 64 | # 12. each statistic: a single tree sufficies, with edge cases |
63 | 65 | # a. agrees with naive version, polarised and not; |
64 | 66 | # b. agrees with python version, polarised and not; |
65 | 67 | # c. stat-specific options (eg centre) |
66 | 68 |
|
| 69 | + |
67 | 70 | def cached_np(func): |
68 | 71 | """ |
69 | 72 | Decorator to speed up functions that take numpy arrays as positional |
|
0 commit comments