Skip to content

Commit

Permalink
remove debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Jan 5, 2025
1 parent e173a0f commit fdd0699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/core/network_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,15 @@ function instantiate_network_model(
IS.ConflictingInputsError(
"The provided PTDF Matrix has reduced radial branches and mismatches the network \\
model specification radial_network_reduction = false. Set the keyword argument \\
radial_network_reduction = true in your network model" )
radial_network_reduction = true in your network model"),
)
end

if model.reduce_radial_branches
@assert !isempty(model.PTDF_matrix.radial_network_reduction)
model.radial_network_reduction = model.PTDF_matrix.radial_network_reduction
end

get_PTDF_matrix(model).subnetworks
model.subnetworks = deepcopy(get_PTDF_matrix(model).subnetworks)
if length(model.subnetworks) > 1
Expand Down
3 changes: 0 additions & 3 deletions src/devices_models/devices/common/add_to_expression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,9 @@ function add_to_expression!(
variable = get_variable(container, U(), V)
expression = get_expression(container, T(), PSY.ACBus)
radial_network_reduction = get_radial_network_reduction(network_model)
@assert !isempty(radial_network_reduction)
for d in devices
name = PSY.get_name(d)
@show PSY.get_bus(d)
bus_no = PNM.get_mapped_bus_number(radial_network_reduction, PSY.get_bus(d))
@show bus_no
for t in get_time_steps(container)
_add_to_jump_expression!(
expression[bus_no, t],
Expand Down

0 comments on commit fdd0699

Please sign in to comment.