Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDKit learns how to query properties on Atoms #442

Merged
merged 2 commits into from
Feb 28, 2015

Conversation

bp-kelley
Copy link
Contributor

I'm not entirely sure I did this correctly, but the regression tests pass :) If you think it's a good idea I'll add python wrappers which will probably be a bit harder!

Examples:

QueryAtom qA;
qA.setQuery(makeAtomHasPropQuery("foo"));

QueryAtom qA;
qA.setQuery(makeAtomPropQuery<double>("foo", 2));

QueryAtom qA;
qA.setQuery(makeAtomPropQuery<std::string>("foo", "bar"));

Brian Kelley added 2 commits February 25, 2015 15:28
 Examples:

    QueryAtom qA;
    qA.setQuery(makeAtomHasPropQuery("foo"));

    QueryAtom qA;
    qA.setQuery(makeAtomPropQuery<double>("foo", 2));

    QueryAtom qA;
    qA.setQuery(makeAtomPropQuery<std::string>("foo", "bar"));
  QueryBond qB;
  qB.setQuery(makePropQuery<Bond, double>("foo", 2));

  QueryAtom qA;
  qA.setQuery(makePropQuery<Atom, string>("foo", “bar”));
@bp-kelley
Copy link
Contributor Author

It looks like the build failed previously due to a failed download of avalon tools.

In the meantime I've added Atom/Bond queries and changed the API slightly

RDKit learns how to query Atom/Bond properties

  QueryBond qB;
  qB.setQuery(makePropQuery<Bond, double>("foo", 2));

  QueryAtom qA;
  qA.setQuery(makePropQuery<Atom, string>("foo", “bar”));

greglandrum added a commit that referenced this pull request Feb 28, 2015
RDKit learns how to query properties on Atoms
@greglandrum greglandrum merged commit 387c44f into rdkit:master Feb 28, 2015
@greglandrum greglandrum added this to the 2015_03_1 milestone Mar 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants