-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loss factors as matrix in PowerFlowData #98
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few code comments. Can you add a description to the pull request for future reference?
Thank you! I have addressed your comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more things and then I think this is good from the code quality point of view.
data.bus_activepower_injection .= deepcopy(injs) | ||
data.bus_activepower_withdrawals .= deepcopy(withs) | ||
# allocate timeseries data from csv | ||
prepare_ts_data!(data, time_steps) | ||
|
||
# get power flows with NR KLU method and write results | ||
solve_powerflow!(data; pf = pf) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like that we have this testset that isn't actually testing anything, but it looks like it was like this before this PR and this PR is just a bit of refactoring, so we can resolve it elsewhere
Co-authored-by: Gabriel Konar-Steenberg <23368820+GabrielKS@users.noreply.github.com>
…erFlows.jl into rb/loss_factors2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New bus_type_idx
looks good. We should investigate at some point whether it makes sense to do something like NREL-Sienna/PowerSystems.jl#1216 with it (@luke-kiernan has been working on this elsewhere in the PowerFlows codebase), but I'm fine to leave it as future work since this PR doesn't introduce the issue.
calc_loss_factors
to ACPowerFlow (default false)nothing
by default