Skip to content

Conversation

@dguittet
Copy link
Owner

To reproduce below issue

run run_double_loop_battery_new_setting.py

Issue:

Traceback (most recent call last):
  File "/Users/dguittet/miniconda3/envs/dispatches/lib/python3.8/site-packages/gridx_prescient-2.2.2-py3.8.egg/prescient/engine/egret/egret_plugin.py", line 678, in _ensure_reserve_factor_honored
    total_load = sum(bdata['p_load']['values'][t]
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "dispatches/case_studies/renewables_case/run_double_loop_battery_new_setting.py", line 300, in <module>
    Prescient().simulate(**prescient_options)
  File "/Users/dguittet/miniconda3/envs/dispatches/lib/python3.8/site-packages/gridx_prescient-2.2.2-py3.8.egg/prescient/simulator/prescient.py", line 75, in simulate
    return self._simulate(self.config)
  File "/Users/dguittet/miniconda3/envs/dispatches/lib/python3.8/site-packages/gridx_prescient-2.2.2-py3.8.egg/prescient/simulator/prescient.py", line 82, in _simulate
    return super().simulate(options)
  File "/Users/dguittet/miniconda3/envs/dispatches/lib/python3.8/site-packages/gridx_prescient-2.2.2-py3.8.egg/prescient/simulator/simulator.py", line 110, in simulate
    oracle_manager.call_operation_oracle(options, time_step)
  File "/Users/dguittet/miniconda3/envs/dispatches/lib/python3.8/site-packages/gridx_prescient-2.2.2-py3.8.egg/prescient/simulator/oracle_manager.py", line 252, in call_operation_oracle
    current_sced_instance = self.engine.create_sced_instance(
  File "/Users/dguittet/miniconda3/envs/dispatches/lib/python3.8/site-packages/gridx_prescient-2.2.2-py3.8.egg/prescient/engine/egret/engine.py", line 140, in create_sced_instance
    current_sced_instance = self._p.create_sced_instance(
  File "/Users/dguittet/miniconda3/envs/dispatches/lib/python3.8/site-packages/gridx_prescient-2.2.2-py3.8.egg/prescient/engine/egret/egret_plugin.py", line 152, in create_sced_instance
    _ensure_reserve_factor_honored(options, sced_md, range(sced_horizon))
  File "/Users/dguittet/miniconda3/envs/dispatches/lib/python3.8/site-packages/gridx_prescient-2.2.2-py3.8.egg/prescient/engine/egret/egret_plugin.py", line 681, in _ensure_reserve_factor_honored

@dguittet
Copy link
Owner Author

@bknueven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants