From 0d27bb1a4bba05414d48c24bf68c4d6562482993 Mon Sep 17 00:00:00 2001 From: jgroehm Date: Sat, 16 Jul 2022 20:59:25 -0500 Subject: [PATCH] black cli --- scispacy/candidate_generation.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scispacy/candidate_generation.py b/scispacy/candidate_generation.py index 1276719..9287abd 100644 --- a/scispacy/candidate_generation.py +++ b/scispacy/candidate_generation.py @@ -16,7 +16,7 @@ UmlsKnowledgeBase, Mesh, GeneOntology, - RxNorm, + RxNorm, HumanPhenotypeOntology, ) @@ -281,8 +281,12 @@ def nmslib_knn_with_zero_vectors( neighbors.append([]) distances.append([]) # interleave `neighbors` and Nones in `extended_neighbors` - extended_neighbors[empty_vectors_boolean_flags] = numpy.array(neighbors, dtype='object')[:-1] - extended_distances[empty_vectors_boolean_flags] = numpy.array(distances, dtype='object')[:-1] + extended_neighbors[empty_vectors_boolean_flags] = numpy.array( + neighbors, dtype="object" + )[:-1] + extended_distances[empty_vectors_boolean_flags] = numpy.array( + distances, dtype="object" + )[:-1] return extended_neighbors, extended_distances