-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8396f3
commit e44c3c6
Showing
22 changed files
with
591 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _graph-syntax: | ||
|
||
============ | ||
Graph Syntax | ||
============ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
atomic_sym2num = { | ||
"H": 1, | ||
"He": 2, | ||
"Li": 3, | ||
"Be": 4, | ||
"B": 5, | ||
"C": 6, | ||
"N": 7, | ||
"O": 8, | ||
"F": 9, | ||
"Ne": 10, | ||
"Na": 11, | ||
"Mg": 12, | ||
"Al": 13, | ||
"Si": 14, | ||
"P": 15, | ||
"S": 16, | ||
"Cl": 17, | ||
"Ar": 18, | ||
"K": 19, | ||
"Ca": 20, | ||
"Ga": 31, | ||
"Ge": 32, | ||
"As": 33, | ||
"Se": 34, | ||
"Br": 35, | ||
"Kr": 36, | ||
"Rb": 37, | ||
"Sr": 38, | ||
"In": 49, | ||
"Sn": 50, | ||
"Sb": 51, | ||
"Te": 52, | ||
"I": 53, | ||
"Xe": 54, | ||
} | ||
|
||
|
||
def get_atomic_number(atomic_symbol) -> int: | ||
if atomic_symbol not in atomic_sym2num.keys(): | ||
raise ValueError("Unknown atomic symbol '{}'.".format(atomic_symbol)) | ||
return atomic_sym2num[atomic_symbol] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
BOND_KEY = "bond" | ||
IS_LABELED_KEY = "is_labeled" | ||
LABELS_KEY = "labels" | ||
IDX_MAP_KEY = "idx_map" |
Oops, something went wrong.