ames-market / psst

PSST - Power System Simulation Toolbox
Other
39 stars 27 forks source link

Remove 1-based indexing for pypower #11

Closed djinnome closed 4 years ago

djinnome commented 4 years ago

It turns out that pypower uses 0-based indexing, not 1-based indexing (unlike matpower). It is confusing, because the comments do seem to indicate that 1-based indexing is used, but these comments were just carried over from the original matpower code. Otherwise it is a fairly straightforward port.