Closed mobiusklein closed 10 months ago
Thank you for catching this.
Looks like I missed the fact that the patch
import not only patched the method but also handled a possible ImportError
. Should I just add a try/except in target_decoy.py
around the pandas
import?
I'm not sure what you refer to about numpy
, did I change something with it as well?
Apologies for the terseness of the post. Catching the import error around the import pandas
line and setting pd = None
should be enough, thank you.
What I meant about numpy
is that if it was your intent to make pandas
a hard requirement, then it would also mean we would remove the numpy
optional feature too. But since numpy
is so ubiquitous it's been ported to several other Python implementations.
Thank you. As far as I understand, this should now be fixed.
The fix to #118 made
pandas
a hard requirement, no longer optional behind theDF
feature. Is this desirable? I don't use theDF
feature myself, but it clearly has uses. It also makesnumpy
a mandatory dependency too, but there's no getting around that.The net result is that if you install
pyteomics
without theDF
feature enabled in a fresh virtual environment, it will not installpandas
and then importingpyteomics
modules that depend uponpyteomics.auxiliary.target_decoy
the program crashes.