We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e95322a commit 5f3db35Copy full SHA for 5f3db35
1 file changed
demes/demes.py
@@ -2003,6 +2003,13 @@ def in_generations(self) -> Graph:
2003
return graph
2004
2005
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
2013
graph = copy.deepcopy(self)
2014
2015
if time_units == "generations" and self.time_units == "generations":
0 commit comments