Skip to content

Commit

Permalink
Add a metadata schema for populations
Browse files Browse the repository at this point in the history
Fixes #76
  • Loading branch information
hyanwong committed Nov 20, 2023
1 parent 0435ae4 commit 6946c0d
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 6946c0d

Please sign in to comment.