@@ -276,24 +276,13 @@ so that now ``n.metadata`` would be a dict,
276276with entries `` n.metadata["slim_id"] `` and `` n.metadata["is_null"] `` and `` n.metadata["genome_type"] `` .
277277Annotation should be done with tskit methods (e.g., `` packset_metadata `` ).
278278
279- For now, the old-style metadata is still available:
280- passing the argument `` legacy_metadata=True `` to {meth}` load `
281- will produce a tree sequence whose metadata is just as before,
282- and so all previously-written scripts that depend on metadata processing should work, unchanged.
283- Restating this:
279+ .. note::
284280
285- :::{note}
286- To make an script that relied on previous metadata parsing work,
287- it should suffice to add ` legacy_metadata=True ` to calls producing
288- SlimTreeSequences, e.g., replacing `` pyslim.load("file.trees") `` with
289- `` pyslim.load("file.trees", legacy_metadata=True) `` , and
290- `` ts.simplify(nodes) `` with
291- `` pyslim.SlimTreeSequence(ts.simplify(nodes), legacy_metadata=True) `` .
292- If this fails, please file an issue on github.
293- :::
281+ Until pyslim version 0.600, the old-style metadata was still available,
282+ but this functionality has been removed.
294283
295284Here are more detailed notes on how to migrate a script from the legacy
296- metadata handling.
285+ metadata handling. If you run into issues, please ask (open a discussion on github).
297286
298287** 1.** Use top-level metadata instead of `` slim_provenance `` :
299288previously, information about the model type and the time counter (generation)
0 commit comments