Skip to content

Search does not work properly #29

@mirk-00

Description

@mirk-00

I noticed there were some issues with the search methods. Here some example taken from the tutorial that do not work as intended:

>>> from chemspipy import ChemSpider
>>> cs = ChemSpider('<My API KEY>')
>>> list(cs.search('O=C(OCC)C'))
[]
>>> list(cs.search('2157'))
[Compound(64853967)]

Here there are other simple molecules that are not found by search

>>> list(cs.search('O=C=O'))
[]
>>> list(cs.search('InChI=1S/H2O/h1H2'))
[]

If left like this the whole package is completely unusable. For what i can see only the search by name works and the one with CSID but the latter produces wrong matches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions