Skip to content

Commit

Permalink
Fix ndarray doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
eachanjohnson committed Oct 11, 2024
1 parent 582802a commit da452f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions schemist/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,13 @@ def calculate_fingerprints(
Examples
--------
>>> bits, validity = calculate_fingerprints(strings='CCC')
>>> bits
array(['80;294;1057;1344'], dtype='<U16')
>>> list(bits)
['80;294;1057;1344']
>>> sum(validity) # doctest: +NORMALIZE_WHITESPACE
1
>>> bits, validity = calculate_fingerprints(strings=['CCC', 'CCCO'])
>>> bits
array(['80;294;1057;1344', '80;222;294;473;794;807;1057;1277'], dtype='<U16')
>>> list(bits)
['80;294;1057;1344', '80;222;294;473;794;807;1057;1277']
>>> sum(validity) # doctest: +NORMALIZE_WHITESPACE
2
>>> np.sum(calculate_fingerprints(strings=['CCC', 'CCCO'], on_bits=False)[0], axis=-1)
Expand Down

0 comments on commit da452f4

Please sign in to comment.