Breakthrough-Energy / REISE.jl

Renewable Energy Integration Simulation Engine
https://breakthrough-energy.github.io/docs/
MIT License
30 stars 22 forks source link

fix: make trans_viol extraction index a numpy array #165

Closed danielolsen closed 2 years ago

danielolsen commented 2 years ago

Pull Request doc

Purpose

Correct a bug from #163: when DC lines are present, there will be an AttributeError when we try to call .tolist() on a list, rather than a numpy array.

What the code is doing

Instead of converting the two arrays to lists and adding them together, concatenate them into a numpy array.

Testing

Tested manually on outputs from the Western interconnect: failed at first, now works.

Time estimate

5 minutes.