@@ -35,6 +35,7 @@ from libc.math cimport sqrt, log
3535
3636cimport rmgpy.constants as constants
3737import rmgpy.quantity as quantity
38+ from rmgpy.util import np_list
3839
3940# Prior to numpy 1.14, `numpy.linalg.lstsq` does not accept None as a value
4041RCOND = - 1 if int (np.__version__.split(' .' )[1 ]) < 14 else None
@@ -150,8 +151,8 @@ cdef class Wilhoit(HeatCapacityModel):
150151 for species, parameters in value.items():
151152 # just the polynomial model for now
152153 processed_parameters = {' model' : parameters[' model' ],
153- ' enthalpy-coefficients' : np.array ([p for p in parameters[' enthalpy-coefficients' ]]),
154- ' entropy-coefficients' : np.array ([p for p in parameters[' entropy-coefficients' ]]),
154+ ' enthalpy-coefficients' : np_list ([p for p in parameters[' enthalpy-coefficients' ]]),
155+ ' entropy-coefficients' : np_list ([p for p in parameters[' entropy-coefficients' ]]),
155156 }
156157 self ._thermo_coverage_dependence[species] = processed_parameters
157158
@@ -213,7 +214,8 @@ cdef class Wilhoit(HeatCapacityModel):
213214 self .Cp0, self .CpInf,
214215 self .a0, self .a1, self .a2, self .a3,
215216 self .H0, self .S0, self .B,
216- Tmin = self .Tmin, Tmax = self .Tmax, comment = self .comment,
217+ Tmin = self .Tmin, Tmax = self .Tmax, thermo_coverage_dependence = self .thermo_coverage_dependence,
218+ comment = self .comment,
217219 )
218220
219221 @ cython.boundscheck (False )
0 commit comments