From da452f40d999cc7cdf96a9c082b6004da68844fa Mon Sep 17 00:00:00 2001 From: Eachan Johnson Date: Fri, 11 Oct 2024 15:58:16 +0100 Subject: [PATCH] Fix ndarray doctest --- schemist/features.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/schemist/features.py b/schemist/features.py index 1e2a807..6e4a81b 100644 --- a/schemist/features.py +++ b/schemist/features.py @@ -190,13 +190,13 @@ def calculate_fingerprints( Examples -------- >>> bits, validity = calculate_fingerprints(strings='CCC') - >>> bits - array(['80;294;1057;1344'], dtype='>> 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='>> 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)