Skip to content

Commit e3fd5c1

Browse files
hyanwongmergify[bot]
authored andcommitted
Doc: ancestors.num_sites=count of inference sites
1 parent d61ae2f commit e3fd5c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tsinfer/formats.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,10 +2305,16 @@ def num_ancestors(self):
23052305

23062306
@property
23072307
def num_sites(self):
2308+
"""
2309+
The number of inference sites used to generate the ancestors
2310+
"""
23082311
return self.sites_position.shape[0]
23092312

23102313
@property
23112314
def sites_position(self):
2315+
"""
2316+
The positions of the inference sites used to generate the ancestors
2317+
"""
23122318
return self.data["sites/position"]
23132319

23142320
@property

0 commit comments

Comments
 (0)