Commit 7cec8f63 authored by Martin Larralde's avatar Martin Larralde
Browse files

Make `ConnectionScorer._index` a no-op when using Prodigal backend

parent 5b1c6b75
......@@ -887,6 +887,9 @@ cdef class ConnectionScorer:
cdef int _index(self, Nodes nodes) nogil except -1:
cdef size_t i
# nothing to be done if we are using the Prodigal code
if self.backend == simd_backend.NONE:
return 0
# reallocate if needed
if self.capacity < nodes.length:
with gil:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment