Skip to content

Commit

Permalink
Fix celery serialization issue with ra_lookback_periods
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiangk1 committed Feb 15, 2021
1 parent d5c9db5 commit 0c329b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion reo/src/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,12 @@ def finalize(self):

if self.resource_adequacy is not None:
ra_event_start_times = self.resource_adequacy.ra_event_start_times
ra_lookback_periods = self.resource_adequacy.ra_lookback_periods
ra_lookback_periods = {}
for key in self.resource_adequacy.ra_lookback_periods:
ra_lookback_periods[key] = []
for lst in self.resource_adequacy.ra_lookback_periods[key]:
ra_lookback_periods[key].append([int(i) for i in lst])

ra_moo_hours = self.resource_adequacy.ra_moo_hours
ra_lookback_days = self.resource_adequacy.ra_lookback_days
ra_demand_pricing = self.resource_adequacy.ra_demand_pricing
Expand Down

0 comments on commit 0c329b2

Please sign in to comment.