Skip to content

Commit a07a9aa

Browse files
committed
Cythonized the new toHTML() methods in kinetics.
I forgot these when I added the methods. Hope this is correct.
1 parent fef7b23 commit a07a9aa

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

rmgpy/kinetics.pxd

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ cdef class KineticsModel:
5050
cpdef bint isPressureDependent(self)
5151

5252
cpdef numpy.ndarray getRateCoefficients(self, numpy.ndarray Tlist)
53+
54+
cpdef str toHTML(self)
5355

5456
################################################################################
5557

@@ -60,6 +62,8 @@ cdef class KineticsData(KineticsModel):
6062
cpdef bint isPressureDependent(self)
6163

6264
cpdef double getRateCoefficient(self, double T, double P=?)
65+
66+
cpdef str toHTML(self)
6367

6468
################################################################################
6569

rmgpy/kinetics.py

+2
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ def toHTML(self):
212212
"""
213213
Return an HTML rendering.
214214
"""
215+
cython.declare(T=cython.double, k=cython.double)
216+
cython.declare(string=str)
215217
string = '<table class="KineticsData"><tr class="KineticsData_Tdata"><th>T/[{0!s}]</th>\n '.format(self.Tdata.units)
216218
for T in self.Tdata.values:
217219
string += '<td>{0:.0f}</td>'.format(T)

0 commit comments

Comments
 (0)