File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 99class TestTemperature :
1010
1111 def test_linear_gradient (self ):
12+ """Test temperature as pd.Series"""
1213 parameters = {'temperature' : pd .Series (data = [267 , 268 ]),
1314 'temperature_height' : 2 ,
1415 'hub_height' : 100 }
15-
16- # Test temperature as pd.Series
1716 temp_hub_exp = pd .Series (data = [266.363 , 267.36300 ])
1817 assert_series_equal (linear_gradient (** parameters ), temp_hub_exp )
1918
20- # Test temperature as np.array
19+ def test_temperature_as_np_array (self ):
20+ """Test temperature as np.array"""
21+ parameters = {'temperature' : np .array ([267 , 268 ]),
22+ 'temperature_height' : 2 ,
23+ 'hub_height' : 100 }
2124 temp_hub_exp = np .array ([266.363 , 267.36300 ])
22- parameters ['temperature' ] = np .array (parameters ['temperature' ])
2325 assert_array_equal (linear_gradient (** parameters ), temp_hub_exp )
2426 assert isinstance (linear_gradient (** parameters ), np .ndarray )
You can’t perform that action at this time.
0 commit comments