Allow power playback as a hercules_type#107
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request extends the Hercules v2 interface layer to recognize PowerPlayback components so they can participate in Hycon’s component-type classification (and be treated as generators for control/aggregation purposes) within Hercules-based simulations.
Changes:
- Add
PowerPlaybackto the recognized Hercules component type lists. - Classify
PowerPlaybackcomponents astype: "playback"withcomponent_category: "generator"duringHerculesInterfaceinitialization.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| elif c_type in hercules_playback_types: | ||
| self.plant_parameters[c] = {"type": "playback", "component_category": "generator"} |
|
Is the idea that the power would be played back for just one of the components in a hybrid system? Is that why it's needed in Hycon rather than solely in Hercules? |
Yeah that's right, if I try to combine say a battery component with power playback Hercules allows it but Hycon throws an error without this fix. |
Small change mostly allows a kind of pass-through controller for power playback type components in a Hercules simulation. These are presumed to be generators for now but we could revisit that. Needed this for one case study but happy to make sure more generally applicable.