> That API was preliminary, the functionality is still there but is now a method of the tree sequence, see tskit documentation. Which script were you trying to run?
>
Ah, yep - well, this bit:
```
bsc = msprime.BranchLengthStatCalculator(sts)
new_targets = [sts.node(u[0]).individual for u in new_nodes]
het = np.array([bsc.divergence([list(sts.individual(u).nodes)], [0.0, sts.sequence_length])[0][0]
for u in new_targets])
```
can now be done like this:
```
new_targets = [sts.node(u[0]).individual for u in new_nodes]
het = sts.divergence([sts.individual(u).nodes for u in new_targets])
```
Also, most all the functionality that was in the spatial_slim module of that repository is now in pyslim, so you can replace
```
ts = sps.SpatialSlimTreeSequence(pyslim.load(treefile), dim=2)
```
with
```
ts = pyslim.load(treefile)
```
and
```
alive = ts.individuals_alive(time)
```
with
```
alive = ts.individuals_alive_at(time)
```
There may be some other modifications that need to be made, but that's at least very close.
Write back if you run into problems!
* peter