From 313f391ea8709bede9aae929ae2a0af50576c9f5 Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Tue, 5 Dec 2023 14:09:40 -0800 Subject: [PATCH] Set time_units to generations when exporting to tskit. --- fwdpy11/tskit_tools/_dump_tables_to_tskit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fwdpy11/tskit_tools/_dump_tables_to_tskit.py b/fwdpy11/tskit_tools/_dump_tables_to_tskit.py index 4378e35c0..182545c46 100644 --- a/fwdpy11/tskit_tools/_dump_tables_to_tskit.py +++ b/fwdpy11/tskit_tools/_dump_tables_to_tskit.py @@ -162,6 +162,7 @@ def _dump_tables_to_tskit( edge_view = np.array(self.tables.edges, copy=False) tc = tskit.TableCollection(self.tables.genome_length) + tc.time_units = "generations" tc.metadata_schema = fwdpy11.tskit_tools.metadata_schema.TopLevelMetadata