Skip to content

Commit

Permalink
add additional method
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Jan 15, 2024
1 parent bd47c8d commit f7d52fa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/network_radial_reduction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,17 @@ function get_mapped_bus_number(rb::RadialNetworkReduction, bus_number::Int)
return get(rb.reverse_bus_search_map, bus_number, bus_number)
end

"""
Interface to obtain the parent bus number of a reduced bus when radial branches are eliminated
# Arguments
- `rb::RadialNetworkReduction`: RadialNetworkReduction object
- `bus::ACBus`: Reduced bus
"""
function get_mapped_bus_number(rb::RadialNetworkReduction, bus::PSY.ACBus)
return get_mapped_bus_number(rb, PSY.get_number(bus))

Check warning on line 238 in src/network_radial_reduction.jl

View check run for this annotation

Codecov / codecov/patch

src/network_radial_reduction.jl#L237-L238

Added lines #L237 - L238 were not covered by tests
end

##############################################################################
########################### Auxiliary functions ##############################
##############################################################################
Expand Down

0 comments on commit f7d52fa

Please sign in to comment.