@@ -23,31 +23,6 @@ def test_temperature_gradient(self):
2323 assert_array_equal (temperature_gradient (** parameters ), temp_hub_exp )
2424 assert isinstance (temperature_gradient (** parameters ), np .ndarray )
2525
26- # def test_temperature_interpol(self): # temperature_interpol() will be removed
27- # self.weather = {'temp_air': pd.Series(data=[267, 268]),
28- # 'temp_air_2': pd.Series(data=[267, 266]),
29- # 'pressure': pd.Series(data=[101125, 101000])}
30- # self.data_height = {'temp_air': 2,
31- # 'temp_air_2': 10,
32- # 'pressure': 0}
33- # # Test pandas.Series
34- # temp_hub_exp = pd.Series(data=[267.0, 243.5])
35- # assert_series_equal(
36- # temperature_interpol(self.weather['temp_air'],
37- # self.weather['temp_air_2'],
38- # self.data_height['temp_air'],
39- # self.data_height['temp_air_2'],
40- # self.h_hub),
41- # temp_hub_exp)
42- # # Test numpy array
43- # assert_array_equal(
44- # temperature_interpol(np.array(self.weather['temp_air']),
45- # np.array(self.weather['temp_air_2']),
46- # self.data_height['temp_air'],
47- # self.data_height['temp_air_2'],
48- # self.h_hub),
49- # temp_hub_exp)
50-
5126 def test_rho_barometric (self ):
5227 parameters = {'pressure' : pd .Series (data = [101125 , 101000 ]),
5328 'pressure_height' : 0 ,
0 commit comments