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

Fix shape comparisons in geometry array #59

Closed
wants to merge 1 commit into from
Closed

Conversation

mattwthompson
Copy link
Member

Description

This may fix #55 - all I did was get the snippet to work. I have not investigated if the result oemols/rdmols are valid. I could not find existing tests that compare directly against QCMols, so I used a modified version of the reproducing snippet to spot-check this:

import qcportal as ptl
import cmiles

print(ptl.__version__)
print(cmiles.__version__)

qc_client  = ptl.FractalClient("https://api.qcarchive.molssi.org:443/")
ds         = qc_client.get_collection('TorsionDriveDataset', "OpenFF Substituted Phenyl Set 1")
qcrecord   = ds.get_record("CCC(=O)Nc1[cH:1][c:2](ccn1)[NH:3][CH2:4]C",
                           specification="default")
qcmols     = qcrecord.get_final_molecules()

for torsion_crd, qcmol in qcmols.items():
    print(qcmol.symbols.shape)
    print(qcmol.geometry.shape)
    print(qcmol.symbols.shape[0]==qcmol.geometry.shape[0])
    oemol = cmiles.utils.load_molecule(qcmol.dict(), toolkit="openeye")
    rdmol = cmiles.utils.load_molecule(qcmol.dict(), toolkit="rdkit")

I skimmed the QCElemental/QCSChema chagelogs/histories but could not quickly discern where these changes might have taken place.

@wutobias
Copy link

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem when loading TorsionDrive qcmol from QCA
2 participants