Skip to content

Commit 777e5c3

Browse files
committed
doc
1 parent 5e7a298 commit 777e5c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

demes/demes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,13 @@ def in_generations(self) -> Graph:
20032003
return graph
20042004

20052005
def change_time_units(self, time_units: str, generation_time: float) -> Graph:
2006+
"""
2007+
Return a copy of the graph with the time units changed.
2008+
2009+
:return:
2010+
A demographic model with ``time_units`` in `"time_units"`.
2011+
:rtype: Graph
2012+
"""
20062013
graph = copy.deepcopy(self)
20072014

20082015
if time_units == "generations" and self.time_units == "generations":

0 commit comments

Comments
 (0)