Skip to content

Commit

Permalink
formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Oct 30, 2023
1 parent 109e866 commit 576193c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/PowerFlowData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ flows and angles, as well as these ones.
depending on the method considered.
- `neighbors::Vector{Set{Int}}`: Vector with the sets of adjacent buses.
"""
struct PowerFlowData{M <: PNM.PowerNetworkMatrix, N <: Union{PNM.PowerNetworkMatrix, Nothing}}
struct PowerFlowData{
M <: PNM.PowerNetworkMatrix,
N <: Union{PNM.PowerNetworkMatrix, Nothing},
}
bus_lookup::Dict{Int, Int}
branch_lookup::Dict{String, Int}
bus_activepower_injection::Matrix{Float64}
Expand Down
2 changes: 1 addition & 1 deletion src/nlsolve_ac_powerflow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function solve_ac_powerflow!(system::PSY.System; kwargs...)
PSY.set_units_base_system!(system, "SYSTEM_BASE")
check_reactive_power_limits = get(kwargs, :check_reactive_power_limits, false)
data = PowerFlowData(
ACPowerFlow(check_reactive_power_limits = check_reactive_power_limits),
ACPowerFlow(; check_reactive_power_limits = check_reactive_power_limits),
system;
check_connectivity = get(kwargs, :check_connectivity, true),
)
Expand Down

0 comments on commit 576193c

Please sign in to comment.