Skip to content

Commit

Permalink
type_ -> component_type
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Feb 8, 2024
1 parent 524519d commit 3d6b44b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library/psi_library.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1190,10 +1190,10 @@ function _duplicate_system(main_sys::PSY.System, twin_sys::PSY.System, HVDC_line
PSY.set_name!(twin_sys, "twin")

# change the names of the areas and loadzones first
for type_ in [PSY.Area, PSY.LoadZone]
for b in PSY.get_components(type_, twin_sys)
for component_type in [PSY.Area, PSY.LoadZone]
for b in PSY.get_components(component_type, twin_sys)
name_ = PSY.get_name(b)
main_comp = PSY.get_component(type_, main_sys, name_)
main_comp = PSY.get_component(component_type, main_sys, name_)

PSY.remove_component!(twin_sys, b)
# change name
Expand Down

0 comments on commit 3d6b44b

Please sign in to comment.