Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ccdfec0
Add plain-Python oracles of the jitted functions, and comparison helpers
nspope Nov 20, 2026
2cd2967
Add microbenchmark harness for the accelerated array-level functions
nspope Nov 20, 2026
ca9b0f6
Test hypergeo and approx against their oracles; add numerical accurac…
nspope Nov 20, 2026
4b4c5be
Test the EP helpers and passes against their oracles; add EP sensitiv…
nspope Nov 20, 2026
58cab9f
Test rescaling, phasing, util, prior and discrete against their oracles
nspope Nov 20, 2026
d75e3aa
Port tsdate.hypergeo to C, with the scalar-function infrastructure
nspope Nov 23, 2026
2dea8b0
Port tsdate.approx to C
nspope Nov 23, 2026
e89acb8
Port the phasing, util and prior functions to C
nspope Nov 23, 2026
5e6b2c6
Port the jitted functions of tsdate.rescaling to C
nspope Nov 23, 2026
3f3afdd
Port the jitted functions of tsdate.variational to C
nspope Nov 25, 2026
28d78fa
Switch tsdate to the C extension
nspope Nov 25, 2026
845f3b9
Trim test scaffolding
nspope Nov 25, 2026
9e1034d
Drop numba
nspope Nov 25, 2026
c9952c9
Describe the code, not its history
nspope Nov 26, 2026
cad52dc
Remove the per-line oracle markers
nspope Nov 26, 2026
818bdaa
Document the phasing functions and the undocumented oracles
nspope Nov 26, 2026
75d7d9e
Put docstring quotes on their own lines
nspope Nov 26, 2026
33e0c99
Make the constraint check a predicate
nspope Nov 26, 2026
d555043
Compare C with the oracles exactly
nspope Nov 26, 2026
5d557c4
Replace the gammaincinv stand-in in the C tests with a placeholder
nspope Nov 26, 2026
f036bf6
Call _tsdate directly in the oracle tests
nspope Nov 26, 2026
37f8414
Remove tests of the test adapters
nspope Nov 26, 2026
b00dd00
Map the oracles to C functions with explicit tables
nspope Nov 26, 2026
36d4237
Explain the gammaincinv placeholder in the C tests
nspope Nov 26, 2026
1d5acdb
Port gammaincinv from xsf to C
nspope Nov 26, 2026
8126562
Return NaN for gammaincinv arguments outside the domain
nspope Nov 26, 2026
5d93ae5
Test the gammaincinv branches that valid arguments reach
nspope Nov 26, 2026
2dfabef
Mark the gammaincinv branches that valid arguments do not reach
nspope Nov 26, 2026
df7afc9
Use libm log and exp in the prior oracle
nspope Nov 26, 2026
1ae43ec
Compare gammaincinv with SciPy only in its own tests
nspope Nov 26, 2026
1b7d2de
Compare gammaincinv with SciPy to a relative tolerance on every platform
nspope Nov 26, 2026
34155c3
Give the oracles the signatures of the C functions
nspope Nov 26, 2026
6d76635
Remove tautological and redundant tests
nspope Nov 26, 2026
3394bf7
Raise the library's errors in the oracles
nspope Nov 26, 2026
bd4e5a6
Remove an unused constant from the rescaling oracle tests
nspope Nov 26, 2026
91512a0
Remove unused C++ guards, macros and an include from the C library
nspope Nov 27, 2026
2129bba
Call _tsdate directly instead of through private aliases, and note th…
nspope Nov 27, 2026
d118e6c
Seed the noise in test_constrain_ages_backcompat
nspope Nov 27, 2026
e840fa9
Fix the inverted size check on the sample mask in count_mutations
nspope Nov 27, 2026
4b669f1
Index pair arrays in tsd_size_t arithmetic
nspope Nov 27, 2026
0ad4526
Describe the domain of tsd_gammaincinv accurately
nspope Nov 27, 2026
32365cf
Sum log likelihoods row by row with one exponential per element
nspope Nov 27, 2026
4786dd9
Validate ids and edge intervals in the library
nspope Nov 27, 2026
a7a7d6f
Explain the bound on the ancestor walks
nspope Nov 27, 2026
5097c33
Hold the expectation propagation state in a C type, and write the mod…
nspope Nov 27, 2026
d8a95ac
Test the argument handling of every function in test_python_c.py
nspope Nov 27, 2026
4e22f1c
Move the comparison helpers of the C tests to the top of the file
nspope Nov 28, 2026
222ab99
Test the special functions against tables of reference values
nspope Nov 28, 2026
6a00973
Test rescaling, priors and damping against tables of reference values
nspope Nov 28, 2026
2913860
Test the gamma approximations against tables of reference values
nspope Nov 28, 2026
b68a6a5
Remove the exports that only the tests used
nspope Nov 28, 2026
78d8c8e
Drop the mpmath dependency, which only the evaluation scripts use
nspope Nov 28, 2026
36ebcd1
Call the library's scalar functions from the evaluation scripts with …
nspope Nov 28, 2026
1c9b99a
Put the bad edge of the reallocation error test in a block that has a…
nspope Nov 28, 2026
29ab522
Write the tests of the _tsdate module out explicitly
nspope Nov 28, 2026
dac8348
Simplify the oracle equivalence tests
nspope Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,42 @@

In development

- The numerical core (the special functions, gamma approximations, expectation
propagation passes, rescaling and utilities) is now a C extension instead of
numba-compiled Python. Results are identical on x86-64 Linux; elsewhere they can
differ in the last few digits. numba is no longer a dependency,
so importing tsdate no longer takes tens of seconds to compile, and
`TSDATE_ENABLE_NUMBA_CACHE` is gone. Wheels are now tested on macOS x86_64 and
built for musllinux.

- The inside-outside method sums likelihoods in log space with numpy, which can
change results in the last few digits.

- `preprocess_ts` now always sorts the tree sequence, which may change the order
of mutations

- Removed the unused, undocumented `tsdate.evaluation` module. Its accuracy
diagnostics are superseded by the scripts in `evaluation/`, the AFS diagnostics
moved to `evaluation/afs.py`, and the polytomy test helpers to `tests/`.

- Removed the internal `tsdate.approx` and `tsdate.hypergeo` modules; the special
functions and gamma approximations are now part of the `_tsdate` C extension.

- The state of `ExpectationPropagation` (the factors, posteriors and normalising
constants) is held by the C extension: the `factors` attribute and the
`EPFactors` class are gone, and `node_posterior`, `edge_logconst` and
`block_logconst` are copies updated by `iterate`.
`tsdate.phasing.reallocate_unphased` returns the reallocated likelihoods instead
of updating its first argument.

**Bugfixes**

- Removed an assertion in `split_disjoint_nodes` that is not guarenteed
to hold since table sorting changes the order of mutations in tskit 1.0.0 onwards

- `tsdate.rescaling.count_mutations` rejected sample masks of the right size and
accepted those of the wrong size.

## [0.2.6] - 2026-03-06

Maintenance release.
Expand Down
Loading
Loading