diff --git a/apstools/utils.py b/apstools/utils.py index 3398bf4b7..c5d8fa7c7 100644 --- a/apstools/utils.py +++ b/apstools/utils.py @@ -334,7 +334,7 @@ def pairwise(iterable): return zip(a, a) -def replay(headers, callback=None): +def replay(headers, callback=None, sort=True): """ replay the document stream from one (or more) scans (headers) @@ -348,7 +348,11 @@ def replay(headers, callback=None): callback: scan or [scan] The Bluesky callback to handle the stream of documents from a scan. If `None`, then use the `bec` (BestEffortCallback) from the IPython shell. - (default:`None`) + (default:``None``) + + sort: bool + Sort the headers chronologically if True. + (default:``True``) *new in apstools release 1.1.11* """