Skip to content

Commit 8bf3a08

Browse files
committed
fix: dropping NaN values of the idf table for reverse engineering.
1 parent 7c8cb6e commit 8bf3a08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

idf_analysis/idf_backend_2012.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def reverse_engineering(self, idf_table, linear_interpolation=False):
5959
# --
6060
w = []
6161
for dur in durations:
62-
dat = w_dat.loc[dur]
62+
dat = w_dat.loc[dur].dropna()
6363
log_tn_i = np.log(dat.index.values)
6464
w.append(sum(dat.values * log_tn_i) / sum(log_tn_i ** 2))
6565

0 commit comments

Comments
 (0)