Skip to content

Conversation

@kroenlein
Copy link
Collaborator

Molecular structure types were added to the cake example. In particular, for the two items that already had expected molecular structures, a SMILES was added to sugar and an InChI was added to salt, both using the same Molecular Structure bounds object.

This is expected to be a proper release.

https://citrine.atlassian.net/browse/PLA-3934

@kroenlein kroenlein requested review from bfolie and sparadiso May 4, 2020 20:37
Comment on lines +118 to +122
tmpl["Molecular Structure"] = PropertyTemplate(
name="Molecular Structure",
description="The molecular structure of the material",
bounds=MolecularStructureBounds()
)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this template used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears (or should be appearing) as a PropertyAndCondition on the MaterialSpec for salt and for sugar. The former is represented as an InChI, the latter as a SMILES.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are the PropertyAndCondition objects linked back to the template? I see, for example,
Property(name='SMILES', value=Smiles("C(C1C(C(C(C(O1)OC2(C(C(C(O2)CO)O)O)CO)O)O)O)O"))), but shouldn'T that property be linked to the PropertyTemplate?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Yes it should.

@kroenlein kroenlein merged commit 28397bc into master May 4, 2020
@kroenlein kroenlein deleted the mols-2-cake branch May 4, 2020 22:20
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.

3 participants