Skip to content

Commit

Permalink
Merge pull request #267 from hyanwong/fwd-schema
Browse files Browse the repository at this point in the history
Add a metadata schema for populations
  • Loading branch information
jeromekelleher authored Nov 21, 2023
2 parents 0435ae4 + 6946c0d commit 7116ce8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions completing_forward_sims.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def wright_fisher(N, T, L=100, random_seed=None):
random.seed(random_seed)
tables = tskit.TableCollection(L)
tables.time_units = "generations"
tables.populations.metadata_schema = tskit.MetadataSchema.permissive_json()
tables.populations.add_row()
P = np.arange(N, dtype=int)
for _ in range(N):
Expand Down

0 comments on commit 7116ce8

Please sign in to comment.