Skip to content

Commit 6974a84

Browse files
authored
Merge pull request #255 from hyanwong/fwd-sim-minor
Minor correction to avoid warning
2 parents 31569fb + 23caafc commit 6974a84

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

completing_forward_sims.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def wright_fisher(N, T, L=100, random_seed=None):
4646
"""
4747
random.seed(random_seed)
4848
tables = tskit.TableCollection(L)
49+
tables.time_units = "generations"
4950
tables.populations.add_row()
5051
P = np.arange(N, dtype=int)
5152
for _ in range(N):
@@ -145,7 +146,7 @@ so that the initial generation can be properly used as the
145146
node ``10`` inherits from on ``[0.0, 1.0)`` and the segment that node ``2``
146147
inherits from on ``[1.0, 2.0)`` both exist in the same node.
147148

148-
Note that although the portions of intial generation (above, nodes ``16``, ``17``,
149+
Note that although the portions of initial generation (above, nodes ``16``, ``17``,
149150
``18``, and ``19``) must be in the tree sequence, they do *not* have to be
150151
samples, and their entire genomes need not be represented (e.g., node ``19`` is
151152
only present on ``[1.0, 2.0)``). This allows {func}`msprime.sim_ancestry` to not simulate

0 commit comments

Comments
 (0)