Breakthrough-Energy / SwitchWrapper

Wrapper for Switch
MIT License
1 stars 2 forks source link

feat: recover storage indices from Switch generator build/dispatch decisions #102

Closed danielolsen closed 3 years ago

danielolsen commented 3 years ago

Pull Request doc

Purpose

Create an unmapping of Switch generator indices to both PowerSimData plant IDs and storage IDs. Closes #99 (in combination with the previously-merged #101)

What the code is doing

We follow pretty closely the unmapping patterns of Switch branches into our AC & DC lines. recover_plant_indices now returns two pandas Series, one for plants and one for storage.

Testing

More test cases are added to the existing unit test.

Time estimate

5 minutes.