Skip to content

Commit d151c7b

Browse files
committed
fix yaml syntax
1 parent 7e57e81 commit d151c7b

2 files changed

Lines changed: 29 additions & 45 deletions

File tree

test/rmgpy/speciesTest.py

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -459,30 +459,22 @@ def test_cantera(self):
459459
rmg_ct_species = rmg_species.to_cantera(use_chemkin_identifier=True)
460460

461461
ct_species = ct.Species.from_yaml("""
462-
description: |-
463-
Argon
464-
465-
generator: cti2yaml
466-
cantera-version: 3.1.0
467-
date: Wed, 22 Jan 2025 13:43:24 -0500
468-
469-
species:
470-
- name: Ar
471-
composition: {Ar: 1}
472-
thermo:
473-
model: NASA7
474-
temperature-ranges: [200.0, 1000.0, 6000.0]
475-
data:
476-
- [2.5, 0.0, 0.0, 0.0, 0.0, -745.375, 4.37967]
477-
- [2.5, 0.0, 0.0, 0.0, 0.0, -745.375, 4.37967]
478-
transport:
479-
model: gas
480-
geometry: atom
481-
diameter: 3.33
482-
well-depth: 136.501
483-
dipole: 2.0
484-
polarizability: 1.0
485-
rotational-relaxation: 15.0
462+
name: Ar
463+
composition: {Ar: 1}
464+
thermo:
465+
model: NASA7
466+
temperature-ranges: [200.0, 1000.0, 6000.0]
467+
data:
468+
- [2.5, 0.0, 0.0, 0.0, 0.0, -745.375, 4.37967]
469+
- [2.5, 0.0, 0.0, 0.0, 0.0, -745.375, 4.37967]
470+
transport:
471+
model: gas
472+
geometry: atom
473+
diameter: 3.33
474+
well-depth: 136.501
475+
dipole: 2.0
476+
polarizability: 1.0
477+
rotational-relaxation: 15.0
486478
""")
487479
assert type(rmg_ct_species) == type(ct_species)
488480
assert rmg_ct_species.name == ct_species.name

test/rmgpy/transportDataTest.py

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -161,27 +161,19 @@ def test_to_cantera(self):
161161
rmg_ct_transport = transport.to_cantera()
162162
import cantera as ct
163163

164-
ct_species = ct.Species.fromCti("""
165-
description: |-
166-
Argon
167-
168-
generator: cti2yaml
169-
cantera-version: 3.1.0
170-
date: Wed, 22 Jan 2025 13:48:06 -0500
171-
172-
species:
173-
- name: Ar
174-
composition: {Ar: 1}
175-
thermo:
176-
model: constant-cp
177-
transport:
178-
model: gas
179-
geometry: atom
180-
diameter: 3.33
181-
well-depth: 136.501
182-
dipole: 2.0
183-
polarizability: 1.0
184-
rotational-relaxation: 15.0
164+
ct_species = ct.Species.from_yaml("""
165+
name: Ar
166+
composition: {Ar: 1}
167+
thermo:
168+
model: constant-cp
169+
transport:
170+
model: gas
171+
geometry: atom
172+
diameter: 3.33
173+
well-depth: 136.501
174+
dipole: 2.0
175+
polarizability: 1.0
176+
rotational-relaxation: 15.0
185177
""")
186178

187179
ct_transport = ct_species.transport

0 commit comments

Comments
 (0)