bp-kelley / descriptastorus

Descriptor computation(chemistry) and (optional) storage for machine learning
Other
220 stars 62 forks source link

Enable install descripastorus w/o pre-install rdkit. #18

Closed rgasper closed 1 year ago

rgasper commented 2 years ago

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

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 builtin bool. To silence this warning, use bool 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.columns

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 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 builtin float. To silence this warning, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.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 ================================================================================================================

SagiPolaczek commented 1 year ago

@bp-kelley

Hey :) Is this one ready to merge?

bp-kelley commented 1 year ago

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: @.***>

SagiPolaczek commented 1 year ago

Thanks!