Skip to content

Commit c57101b

Browse files
committed
Removing comments
1 parent c4c0e7c commit c57101b

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

rmgpy/cantera.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def write_cantera(
3232
solvent_data=None,
3333
path="chem.yml",
3434
):
35-
# result_dict = get_mech_dict(spcs, rxns, solvent=solvent, solvent_data=solvent_data)
3635

3736
# intro to file will change depending on the presence of surface species
3837
is_surface = False
@@ -139,8 +138,6 @@ def write_surface_species(spcs, rxns, surface_site_density):
139138
# surface_species = [spc for spc in spcs if spc.contains_surface_site()]
140139
# gas_species = [spc for spc in spcs if not spc.contains_surface_site()]
141140

142-
# VERY INTERESTING: for some reason, the sample catalysis yaml that i was looking at split up the species (surface v. gas), but when I do that, I get an error in cantera
143-
144141
sorted_surface_species = sorted(
145142
surface_species, key=lambda surface_species: surface_species.index
146143
)
@@ -154,16 +151,9 @@ def write_surface_species(spcs, rxns, surface_site_density):
154151
get_species_identifier(gas_species) for gas_species in sorted_gas_species
155152
]
156153

157-
# using this now instead because the separated species gave me errors?
158154
sorted_species = sorted(spcs, key=lambda spcs: spcs.index)
159155
species_to_write = [get_species_identifier(spec) for spec in sorted_species]
160156

161-
# coverage_dependencies = {}
162-
# for rxn in rxns:
163-
# coverage_dependence = getattr(rxn.kinetics, 'coverage_dependence', {})
164-
# if coverage_dependence:
165-
# coverage_dependencies.update(coverage_dependence)
166-
167157
# gas part
168158
block1 = f"""
169159
phases:
@@ -256,7 +246,6 @@ def get_mech_dict_nonsurface(spcs, rxns, solvent="solvent", solvent_data=None):
256246
if names.count(name) > 1:
257247
names[i] += "-" + str(names.count(name))
258248

259-
# for spc in spcs:
260249
result_dict = dict()
261250
result_dict["species"] = [obj_to_dict(x, spcs, names=names) for x in spcs]
262251

@@ -275,7 +264,6 @@ def reaction_to_dicts(obj, spcs):
275264
length 1, but a MultiArrhenius or MultiPDepArrhenius will be longer.
276265
"""
277266

278-
# try:
279267
reaction_list = []
280268
if isinstance(obj.kinetics, MultiArrhenius) or isinstance(
281269
obj.kinetics, MultiPDepArrhenius
@@ -295,28 +283,9 @@ def reaction_to_dicts(obj, spcs):
295283
)
296284
if val != 1
297285
}
298-
# if isinstance(obj.kinetics, StickingCoefficient):
299-
# reaction_data.pop('equation', None)
300-
# reaction_data['equation'] = str(obj)
301286
reaction_list.append(reaction_data)
302287

303-
# for reaction in list_of_cantera_reactions:
304-
# reaction_data = reaction.input_data
305-
# efficiencies = getattr(obj.kinetics, 'efficiencies', {})
306-
# if efficiencies:
307-
# reaction_data["efficiencies"] = {spcs[i].to_chemkin(): float(val) for i, val in enumerate(obj.kinetics.get_effective_collider_efficiencies(spcs)) if val != 1}
308-
309-
# reaction_list.append(reaction_data)
310-
311-
# if isinstance[obj.kinetics, StickingCoefficient]:
312-
# print(str(obj))
313-
314288
return reaction_list
315-
# except:
316-
# print('passing')
317-
# print(type(obj.kinetics))
318-
# print(str(obj))
319-
# return []
320289

321290

322291
def obj_to_dict(obj, spcs, names=None, label="solvent"):

0 commit comments

Comments
 (0)