Skip to content

Commit 5702250

Browse files
updated examples
1 parent 7e50756 commit 5702250

File tree

4 files changed

+2415
-1090
lines changed

4 files changed

+2415
-1090
lines changed

examples/Controllers_Definition.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def compute(self):
6262
if self.input['data'] == -1:
6363
return 'Wariting to initialize.'
6464
data = pd.read_json(self.input['data'])
65-
control = {'P_batt': data['P_load'] - data['P_pv']}
65+
data['P_batt'] = data['P_load'] - data['P_pv']
66+
control = data['P_batt'].values.tolist()
6667
self.output['control'] = control
6768
return 'Computed control.'
6869
"""

0 commit comments

Comments
 (0)