Skip to content

Commit b0d0d94

Browse files
committed
Docs: document timestamp simulation methods
1 parent 325c758 commit b0d0d94

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

pybromo/timestamps.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,15 @@ def _calc_hash_da(self, rs):
215215

216216
def run(self, rs, overwrite=True, skip_existing=False, path=None,
217217
chunksize=None):
218-
"""Compute timestamps for current populations."""
218+
"""Compute timestamps for current populations.
219+
220+
This method simulate timestamps separately for donor and acceptor,
221+
simulating two different Poisson processes. This requires going
222+
through the trajectory file twice which is slower but more flexible
223+
than a single-pass.
224+
225+
See also :meth:`run_da`.
226+
"""
219227
if path is None:
220228
path = str(self.S.store.filepath.parent)
221229
kwargs = dict(rs=rs, overwrite=overwrite, path=path,
@@ -249,7 +257,17 @@ def run(self, rs, overwrite=True, skip_existing=False, path=None,
249257

250258
def run_da(self, rs, overwrite=True, skip_existing=False, path=None,
251259
chunksize=None):
252-
"""Compute timestamps for current populations."""
260+
"""Compute timestamps for current populations.
261+
262+
This method simulate timestamps for donor and acceptor from a single
263+
Poisson process, then splitting D and A photons with according to a
264+
Binomial distribution. This requires going through the trajectory
265+
file only once but is more limited than independent simulations
266+
for D and A as done by :meth:`run`.
267+
268+
See also :meth:`run`.
269+
"""
270+
253271
if path is None:
254272
path = str(self.S.store.filepath.parent)
255273
kwargs = dict(rs=rs, overwrite=overwrite, path=path,

0 commit comments

Comments
 (0)