Skip to content

Commit 7116ce8

Browse files
Merge pull request #267 from hyanwong/fwd-schema
Add a metadata schema for populations
2 parents 0435ae4 + 6946c0d commit 7116ce8

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)