-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add bonds
for structure type entries
#465
base: develop
Are you sure you want to change the base?
Changes from 15 commits
cbe0641
1478145
9502864
5460c5a
a49da9e
c016d01
7bf9f2b
a448690
6bfa206
e4b870c
8a37350
d0ab465
0b0326a
b682c70
7c1102b
e4ac0cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2833,6 +2833,38 @@ assemblies | |
These two sites are correlated (either site 2 or 3 is present). | ||
However, the presence or absence of sites 0 and 1 is not correlated with the presence or absence of sites 2 and 3 (in the specific example, the pair of sites (0, 2) can occur with 0.2\*0.3 = 6 % probability; the pair (0, 3) with 0.2\*0.7 = 14 % probability; the pair (1, 2) with 0.8\*0.3 = 24 % probability; and the pair (1, 3) with 0.8\*0.7 = 56 % probability). | ||
|
||
bonds | ||
~~~~~ | ||
|
||
- **Description**: A list describing the chemical connectivity of the structure. | ||
- **Type**: list of dictionary with keys: | ||
|
||
- :property:`sites`: a list of integers (REQUIRED) | ||
- :property:`translations`: a list of list of integers (OPTIONAL) | ||
- :property:`distance`: float (OPTIONAL) | ||
|
||
- **Requirements/Conventions**: | ||
|
||
- **Support**: OPTIONAL support in implementations, i.e., MAY be :val:`null`. | ||
- **Query**: Support for queries on this property is OPTIONAL. | ||
If supported, filters MAY support only a subset of comparison operators. | ||
- The property SHOULD be :val:`null` for structures for which the chemical connectivity is unknown to the implementation. | ||
- If present, it MUST be a list of dictionaries, each of which represents a chemical bond and MUST have the following key: | ||
|
||
- *sites*: a non-decreasing list of 0-based indexes of the two sites that form a chemical bond. | ||
|
||
- If translations are needed by at least one of the sites of a bond, the following key SHOULD be used: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the That is, maybe we should change SHOULD to MUST? Edit: changed the field name from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume you are talking about There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @merkys Yes, I actually meant |
||
|
||
- *translations*: a list of two lists of three integers each, defining translations of the sites. | ||
Omitting this key means that both translation vectors are :val:`[0, 0, 0]`. | ||
|
||
merkys marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- OPTIONAL key :property:`distance` MAY be used to provide distance in ångström (Å) between the two sites after applying the appropriate translation vectors. | ||
merkys marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- **Examples**: | ||
|
||
- :val:`[ {"sites": [0, 1]} ]`: a structure with a bond between sites 0 and 1. | ||
- :val:`[ {"sites": [0, 0], "translations": [ [0, 0, 0], [0, 0, 1] ]} ]`: a 1D polymer. | ||
|
||
structure\_features | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably specify very clearly that translations must be applied to the coordinates of atoms as they are currently given, and not to, e.g., coordinates reduced to the [0;1) unit cell.