-
Notifications
You must be signed in to change notification settings - Fork 4
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
9b68459
commit 16b9383
Showing
1 changed file
with
5 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
from material_parser.material_parser import MaterialParser | ||
import regex | ||
from .utils import found_package | ||
import regex | ||
|
||
__author__ = 'Tanjin He' | ||
__maintainer__ = 'Tanjin He, Ziqin (Shaun) Rong' | ||
__email__ = '[email protected], [email protected]' | ||
|
||
# constant | ||
mp = MaterialParser(pubchem_lookup=False) | ||
if found_package('material_parser'): | ||
from material_parser.material_parser import MaterialParser | ||
mp = MaterialParser(pubchem_lookup=False) | ||
allNonMetalElements = set(['C', 'H', 'O', 'N', 'Cl', 'F', 'P', 'S', 'Br', 'I', 'Se'] + ['He', 'Ne', 'Ar', 'Kr', 'Xe', 'Rn']) | ||
# element table by symbol of elements | ||
elementTable = { | ||
|