diff --git a/bpeng/bill/disaggregate.py b/bpeng/bill/disaggregate.py index fbe751208318b81a9b31b14c78e25cf491417c45..0a78f51c063dca5aa99fc1b8630d278d6a954f8c 100644 --- a/bpeng/bill/disaggregate.py +++ b/bpeng/bill/disaggregate.py @@ -218,6 +218,8 @@ class BillDisaggregation(): self.heating_load_m, self.cooling_load_m = \ np.array([self.heating_load_m, self.cooling_load_m]) \ * real_sum / (self.cooling_load_m + self.heating_load_m) + self.heating_load_m = np.nan_to_num(self.heating_load_m) + self.cooling_load_m = np.nan_to_num(self.cooling_load_m) self.others_m = np.zeros(len(self.others_m)) # For printing output