We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd84c08 commit 70396d6Copy full SHA for 70396d6
1 file changed
rmgpy/chemkin.py
@@ -1175,6 +1175,11 @@ def getSpeciesIdentifier(species):
1175
else:
1176
logging.warning('Species label is longer than 15 characters and will break CHEMKIN 2.0')
1177
return species.label
1178
+ else:
1179
+ # try the chemical formula if the species label is not present
1180
+ if len(species.molecule) > 0:
1181
+ # Try the chemical formula
1182
+ return '{0}'.format(species.molecule[0].getFormula())
1183
1184
1185
# Index present - the index will be included in the identifier
0 commit comments