Skip to content

Commit d70a49d

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

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
@@ -1232,9 +1232,9 @@ def execute(self, initialize=True, **kwargs):
12321232
if sp.is_isomorphic(mol, strict=False):
12331233
try:
12341234
parameters['units'] = {'energy':'J', 'quantity':'mol'}
1235-
content["species"][surf.species_index(sp.label)]['coverage-dependencies'][sp.label] = parameters
1235+
content["species"][surf.species_index(sp.to_chemkin())]['coverage-dependencies'][sp.to_chemkin()] = parameters
12361236
except KeyError:
1237-
content["species"][surf.species_index(sp.label)]['coverage-dependencies'] = {sp.label: parameters}
1237+
content["species"][surf.species_index(sp.to_chemkin())]['coverage-dependencies'] = {sp.to_chemkin(): parameters}
12381238

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

0 commit comments

Comments
 (0)