phac-nml / staramr

Scans genome contigs against the ResFinder, PlasmidFinder, and PointFinder databases.
Apache License 2.0
120 stars 26 forks source link

`np.unicode_` was removed in the NumPy 2.0 release #213

Open sgsutcliffe opened 4 months ago

sgsutcliffe commented 4 months ago

We need to replace np.unicode_ with np.str_ in line

dtype={'qseqid': np.unicode_, 'sseqid': np.unicode_})

In the BlastResultsParser.py script to be compatible with 2.0+ Numpy

cizydorczyk commented 3 months ago

I had to manually edit this line as stated above to make staramr run. I have python 3.12.5 and numpy 2.1.0 installed. Staramr 0.10.0.