Skip to content

Commit

Permalink
Set time_units to generations when exporting to tskit.
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Dec 5, 2023
1 parent 5742492 commit 313f391
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fwdpy11/tskit_tools/_dump_tables_to_tskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 313f391

Please sign in to comment.