Skip to content

Commit b76210f

Browse files
committed
start on the py-side schema
1 parent 569ef5b commit b76210f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

python/test_json_metadata.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@
33

44
def setup_ts():
55
ts = tskit.TreeSequence.load("with_json_metadata.trees")
6-
return ts
6+
tables = ts.tables
7+
tables.individuals.metadata_schema = tskit.metadata.MetadataSchema(
8+
{
9+
"codec": "json",
10+
"type": "object",
11+
"name": "Individual metadata",
12+
"properties": {"name": {"type": "string"},
13+
"phenotypes": {"type": "list"}},
14+
})
15+
return tables.tree_sequence()
716

817

9-
def test_mutation_metadata():
18+
def test_individual_metadata():
1019
ts = setup_ts()
1120
raise NotImplementedError()

0 commit comments

Comments
 (0)