althonos / pyopal

Cython bindings and Python interface to Opal, a SIMD-accelerated database search aligner.
https://pyopal.readthedocs.io
MIT License
8 stars 1 forks source link

`pyopal` crashes when passed empty list of sequences to `Database` #6

Closed valentynbez closed 7 months ago

valentynbez commented 8 months ago

To reproduce:

db = Database([])
aligner.align("AGAGAAATAGAG", db, mode="score", overflow="buckets", algorithm="nw")

Catching the error before it occurs would be great.

althonos commented 7 months ago

Thanks, this is fixed in v0.5.2.