@@ -58,7 +58,7 @@ def setup_class(self):
5858 self .Tmin = 300.0
5959 self .Tmax = 3000.0
6060 self .comment = "C2H6"
61- self .thermo_coverage_dependence = {'OX ' :{'model' :'polynomial' , 'enthalpy-coefficients' :[1 ,2 ,3 ], "entropy-coefficients" :[1 ,2 ,3 ]}}
61+ self .thermo_coverage_dependence = {'1 O u0 p2 c0 {2,D} \n 2 X u0 p0 c0 {1,D} ' :{'model' :'polynomial' , 'enthalpy-coefficients' :[1 ,2 ,3 ], "entropy-coefficients" :[1 ,2 ,3 ]}}
6262 self .wilhoit = Wilhoit (
6363 Cp0 = (self .Cp0 * constants .R , "J/(mol*K)" ),
6464 CpInf = (self .CpInf * constants .R , "J/(mol*K)" ),
@@ -458,16 +458,11 @@ def test_wilhoit_as_dict(self):
458458 "value" : 178.76114800000002 ,
459459 },
460460 "class" : "Wilhoit" ,
461- 'thermo_coverage_dependence' : {'OX' : {
462- 'model' : 'polynomial' ,
463- 'enthalpy-coefficients' : [{'class' : 'ScalarQuantity' , 'value' : 1.0 },
464- {'class' : 'ScalarQuantity' , 'value' : 2.0 },
465- {'class' : 'ScalarQuantity' , 'value' : 3.0 }
466- ],
467- 'entropy-coefficients' : [{'class' : 'ScalarQuantity' , 'value' : 1.0 },
468- {'class' : 'ScalarQuantity' , 'value' : 2.0 },
469- {'class' : 'ScalarQuantity' , 'value' : 3.0 }
470- ]}}
461+ 'thermo_coverage_dependence' : {'1 O u0 p2 c0 {2,D} \n 2 X u0 p0 c0 {1,D}' : {
462+ 'model' : 'polynomial' ,
463+ 'enthalpy-coefficients' : {'class' : 'np_array' , 'object' : [1 , 2 , 3 ]},
464+ 'entropy-coefficients' : {'class' : 'np_array' , 'object' : [1 , 2 , 3 ]}}
465+ }
471466 }
472467
473468 def test_make_wilhoit (self ):
@@ -476,6 +471,6 @@ def test_make_wilhoit(self):
476471 """
477472 wilhoit_dict = self .wilhoit .as_dict ()
478473 new_wilhoit = Wilhoit .__new__ (Wilhoit )
479- class_dictionary = {"ScalarQuantity" : ScalarQuantity , "Wilhoit" : Wilhoit }
474+ class_dictionary = {"ScalarQuantity" : ScalarQuantity , "Wilhoit" : Wilhoit , "np_array" : np . array }
480475
481476 new_wilhoit .make_object (wilhoit_dict , class_dictionary )
0 commit comments