Skip to content

Commit 4013707

Browse files
committed
Comment an elegant alternative averaging scheme.
Unfortunately we need to revert the commit titled "Remove charge transfer types from average_kinetics (to be reverted)" at some point in the not so distant future, and doing this different averaging scheme now would mess that up.
1 parent 09a39e9 commit 4013707

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rmgpy/data/kinetics/family.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4693,6 +4693,12 @@ def average_kinetics(kinetics_list):
46934693
logA /= count
46944694
n /= count
46954695
Ea /= count
4696+
4697+
## The above could be replaced with something like:
4698+
# logA, n, Ea = np.mean([[np.log10(k.A.value_si),
4699+
# k.n.value_si,
4700+
# k.Ea.value_si] for k in kinetics_list], axis=1)
4701+
46964702
Aunits = kinetics_list[0].A.units
46974703
if Aunits in {'cm^3/(mol*s)', 'cm^3/(molecule*s)', 'm^3/(molecule*s)'}:
46984704
Aunits = 'm^3/(mol*s)'

0 commit comments

Comments
 (0)