Skip to content

Commit e9e2703

Browse files
committed
Use chemkin strings instead of labels when writing to yaml files
1 parent fa8a9ec commit e9e2703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rmgpy/rmg/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,9 +1199,9 @@ def execute(self, initialize=True, **kwargs):
11991199
if sp.is_isomorphic(mol, strict=False):
12001200
try:
12011201
parameters['units'] = {'energy':'J', 'quantity':'mol'}
1202-
content["species"][surf.species_index(sp.label)]['coverage-dependencies'][sp.label] = parameters
1202+
content["species"][surf.species_index(sp.to_chemkin())]['coverage-dependencies'][sp.to_chemkin()] = parameters
12031203
except KeyError:
1204-
content["species"][surf.species_index(sp.label)]['coverage-dependencies'] = {sp.label: parameters}
1204+
content["species"][surf.species_index(sp.to_chemkin())]['coverage-dependencies'] = {sp.to_chemkin(): parameters}
12051205

12061206
annotated_yaml_path = os.path.join(self.output_directory, "cantera", "chem_annotated.yaml")
12071207
with open(annotated_yaml_path, 'r') as f:

0 commit comments

Comments
 (0)