Skip to content

Commit

Permalink
style: add new line at the end of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
levaphenyl committed Oct 7, 2020
2 parents 04b64d7 + 8f5768f commit c8903ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nilmtk_contrib/disaggregate/afhmm_sac.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ def disaggregate_thread(self, test_mains,index,d):
u = time.time()
prob = cvx.Problem(expression, constraints)
prob.solve(solver=cvx.SCS,verbose=False, warm_start=True)
s_ = [i.value for i in cvx_state_vectors]
s_ = [
np.zeros((len(test_mains), self.default_num_states)) if i.value is None
else i.value
for i in cvx_state_vectors
]

prediction_dict = {}
for appliance_id in range(self.num_appliances):
Expand Down

0 comments on commit c8903ad

Please sign in to comment.