Closed rgasper closed 1 year ago
@bp-kelley
Hey :) Is this one ready to merge?
I'm doing some testing before the rdkit UGM and will make sure it is released prior to next wednesday.
Thanks for the contribution.
On Fri, Oct 7, 2022 at 10:48 AM Sagi Polaczek @.***> wrote:
@bp-kelley https://github.com/bp-kelley
Hey :) Is this one ready to merge?
— Reply to this email directly, view it on GitHub https://github.com/bp-kelley/descriptastorus/pull/18#issuecomment-1271695668, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACLOFIHNYELRVLLR2ZZJ34DWCAZ27ANCNFSM52NQCB6A . You are receiving this because you were mentioned.Message ID: @.***>
Thanks!
remove import for rdkit, add rdkit to requirements, add rdkit to install_requires.
This reflects changes in rdkit allowing it to be installed via pip (and all downstream tooling like pipenv, poetry, etc.): https://github.com/rdkit/rdkit/pull/5373
Closes #17
Testing
rdkit is not installed
install descriptastorus
now we can import
run tests
tests/test_keyvalue.py .. [ 28%] tests/test_pandas.py . [ 42%] tests/test_rawStore.py . [ 57%] tests/test_smiles_reindex.py .. [ 85%] tests/test_test1.py . [100%]
====================================================================================================================== warnings summary ======================================================================================================================= tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pddescriptors /usr/local/anaconda3/envs/eis/lib/python3.10/site-packages/descriptastorus/descriptors/DescriptorGenerator.py:100: DeprecationWarning:
np.bool
is a deprecated alias for the builtinbool
. To silence this warning, usebool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations return [ (self.NAME + "_calculated", numpy.bool) ] + self.columnstests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors tests/test_pandas.py::TestPandasDataFrame::test_pd_descriptors /usr/local/anaconda3/envs/eis/lib/python3.10/site-packages/rdkit/Chem/Graphs.py:43: DeprecationWarning:
np.float
is a deprecated alias for the builtinfloat
. To silence this warning, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations res = numpy.zeros(nAtoms + 1, numpy.float)-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =============================================================================================================== 7 passed, 13 warnings in 7.33s ================================================================================================================