Skip to content

Commit 1e69e3c

Browse files
Fixed #562 Added parameter atol to motifs/_motifs and docstring (#564)
* add description of parameter atol to docstring * pass parameter atol to _motifs
1 parent b350b7b commit 1e69e3c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

stumpy/motifs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ def motifs(
217217
max_motifs : int, default 1
218218
The maximum number of motifs to return
219219
220+
atol : float, default 1e-8
221+
The absolute tolerance parameter. This value will be added to `max_distance`
222+
when comparing distances between subsequences.
223+
220224
normalize : bool, default True
221225
When set to `True`, this z-normalizes subsequences prior to computing distances.
222226
Otherwise, this function gets re-routed to its complementary non-normalized
@@ -299,6 +303,7 @@ def motifs(
299303
cutoff,
300304
max_matches,
301305
max_motifs,
306+
atol=atol,
302307
)
303308

304309
return motif_distances, motif_indices

0 commit comments

Comments
 (0)