Skip to content

Commit

Permalink
formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Sep 12, 2023
1 parent 274b022 commit 7fbb9d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ function _add_to_collection!(collection::Vector{PSY.ACBranch}, branch::PSY.ACBra
return
end

function _add_to_collection!(::Vector{PSY.ACBranch}, ::Union{PSY.TwoTerminalHVDCLine, PSY.TwoTerminalVSCDCLine})
function _add_to_collection!(
::Vector{PSY.ACBranch},
::Union{PSY.TwoTerminalHVDCLine, PSY.TwoTerminalVSCDCLine},
)
return
end

Expand Down Expand Up @@ -41,7 +44,11 @@ Gets the non-isolated buses from a given System
function get_buses(sys::PSY.System)::Vector{PSY.ACBus}
return sort!(
collect(
PSY.get_components(x -> PSY.get_bustype(x) != ACBusTypes.ISOLATED, PSY.ACBus, sys),
PSY.get_components(
x -> PSY.get_bustype(x) != ACBusTypes.ISOLATED,
PSY.ACBus,
sys,
),
);
by = x -> PSY.get_number(x),
)
Expand Down
6 changes: 5 additions & 1 deletion src/ybus_calculations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ Builds a Adjacency from the system. The return is an N x N Adjacency Array index
function Adjacency(sys::PSY.System; check_connectivity::Bool = true, kwargs...)
nodes = sort!(
collect(
PSY.get_components(x -> PSY.get_bustype(x) != ACBusTypes.ISOLATED, PSY.ACBus, sys),
PSY.get_components(
x -> PSY.get_bustype(x) != ACBusTypes.ISOLATED,
PSY.ACBus,
sys,
),
);
by = x -> PSY.get_number(x),
)
Expand Down

0 comments on commit 7fbb9d6

Please sign in to comment.