Skip to content

Commit 1b14a8a

Browse files
agladsteinjeromekelleher
authored andcommitted
added docstring to demography.sort_events()
1 parent 3599dfa commit 1b14a8a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

msprime/demography.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,8 +1112,10 @@ def remap(identifier):
11121112
return copy_demog
11131113

11141114
def sort_events(self):
1115-
# Sort demographic events by time. Sorting is stable so the relative
1116-
# order of events at the same time will be preserved.
1115+
"""
1116+
Sort demographic events by time. Sorting is stable so the relative
1117+
order of events at the same time will be preserved.
1118+
"""
11171119
self.events.sort(key=lambda de: de.time)
11181120

11191121
def insert_populations(self, tables):

0 commit comments

Comments
 (0)