@@ -27,10 +27,10 @@ def _avg_daily_temp_change(time_range, temp_cell):
27
27
Average of Daily Maximum Temperature for 1-year (Celsius)
28
28
29
29
"""
30
-
30
+
31
31
if time_range .dtype == 'object' :
32
32
time_range = pd .to_datetime (time_range )
33
-
33
+
34
34
# Setup frame for vector processing
35
35
timeAndTemp_df = pd .DataFrame (columns = ['Cell Temperature' ])
36
36
timeAndTemp_df ['Cell Temperature' ] = temp_cell
@@ -111,7 +111,7 @@ def solder_fatigue(weather_df, meta,
111
111
This function uses the default values for 60-min input intervals from Table 4 of the above
112
112
paper. For other use cases, please refer to the paper for recommended values of C1 and
113
113
the reversal temperature.
114
-
114
+
115
115
Parameters
116
116
------------
117
117
weather_df : pd.dataframe
@@ -143,9 +143,9 @@ def solder_fatigue(weather_df, meta,
143
143
144
144
"""
145
145
146
- # TODO this, and many other functions with temp_cell or temp_module would benefit from an
146
+ # TODO this, and many other functions with temp_cell or temp_module would benefit from an
147
147
# optional parameter "conf = 'open_rack_glass_glass' or equivalent"
148
-
148
+
149
149
# TODO Make this function have more utility.
150
150
# People want to run all the scenarios from the bosco paper.
151
151
# Currently have everything hard coded for hourly calculation
@@ -158,10 +158,10 @@ def solder_fatigue(weather_df, meta,
158
158
159
159
if time_range is None :
160
160
time_range = weather_df .index
161
-
161
+
162
162
if temp_cell is None :
163
163
temp_cell = temperature .cell (weather_df , meta )
164
-
164
+
165
165
temp_amplitude , temp_max_avg = _avg_daily_temp_change (time_range , temp_cell )
166
166
167
167
temp_max_avg = convert_temperature (temp_max_avg , 'Celsius' , 'Kelvin' )
0 commit comments