Skip to content

Commit

Permalink
Fix solar pysam bug for when an external signal is defined (#115)
Browse files Browse the repository at this point in the history
Co-authored-by: Starke <[email protected]>
  • Loading branch information
genevievestarke and Starke authored Sep 20, 2024
1 parent 69ed95c commit 8eb579e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hercules/python_simulators/solar_pysam.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ def step(self, inputs):
elif "external_signals" in inputs.keys():
if "solar_power_reference_mw" in inputs["external_signals"].keys():
P_setpoint = inputs["external_signals"]["solar_power_reference_mw"]
else:
P_setpoint = None
else:
P_setpoint = None
self.control(P_setpoint)
Expand Down

0 comments on commit 8eb579e

Please sign in to comment.