Skip to content

Commit 6946c0d

Browse files
committed
Add a metadata schema for populations
Fixes #76
1 parent 0435ae4 commit 6946c0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

completing_forward_sims.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def wright_fisher(N, T, L=100, random_seed=None):
4747
random.seed(random_seed)
4848
tables = tskit.TableCollection(L)
4949
tables.time_units = "generations"
50+
tables.populations.metadata_schema = tskit.MetadataSchema.permissive_json()
5051
tables.populations.add_row()
5152
P = np.arange(N, dtype=int)
5253
for _ in range(N):

0 commit comments

Comments
 (0)