GMLC-1-4-2/battery_interface

Battery inverter - Regulation service bug

Closed this issue · 0 comments

hlngo commented

Exception thrown when running the latest battery inverter & regulation service (line 368):

soc_update[i] = self.run_soc_update(p_req=(p_mod-p_req),q_req=(q_mod-q_req),np=numpy.ones(self.num_of_devices),nq=numpy.ones(self.num_of_devices),last_P=last_P,last_Q=last_Q,i=i,dt=dt)
UnboundLocalError: local variable 'q_mod' referenced before assignment

Seems like the bug occurs when Q_req is None