@@ -2590,7 +2590,6 @@ function deserialize_components!(sys::System, raw)
25902590 )
25912591 deserialize_and_add! (; include_types = [HydroReservoir])
25922592 deserialize_and_add! (; include_types = [Branch])
2593- deserialize_and_add! (; include_types = [DynamicBranch])
25942593 deserialize_and_add! (; include_types = [ConstantReserveGroup, DynamicInjection])
25952594 deserialize_and_add! (; skip_types = [StaticInjectionSubsystem])
25962595 deserialize_and_add! ()
@@ -2613,19 +2612,6 @@ Allow types to implement handling of special cases during deserialization.
26132612"""
26142613handle_deserialization_special_cases! (component:: Dict , :: Type{<:Component} ) = nothing
26152614
2616- # TODO DT: Do I need to handle this in the new format upgrade?
2617- # function handle_deserialization_special_cases!(component::Dict, ::Type{DynamicBranch})
2618- # # IS handles deserialization of supplemental attribues in each component.
2619- # # In this case the DynamicBranch's composed branch is not part of the system and so
2620- # # IS will not handle it. It can never attributes.
2621- # if !isempty(component["branch"]["supplemental_attributes_container"])
2622- # error(
2623- # "Bug: serialized DynamicBranch.branch has supplemental attributes: $component",
2624- # )
2625- # end
2626- # return
2627- # end
2628-
26292615# This function does an iterative union find to handle the ordering of the reservoir chains
26302616function _handle_hydro_reservoirs_deserialization_special_cases (
26312617 components:: Vector{Dict} ,
@@ -2831,11 +2817,6 @@ function check_attached_buses(
28312817 return
28322818end
28332819
2834- function check_attached_buses (sys:: System , component:: DynamicBranch )
2835- check_attached_buses (sys, get_branch (component))
2836- return
2837- end
2838-
28392820function check_attached_buses (sys:: System , component:: Arc )
28402821 throw_if_not_attached (get_from (component), sys)
28412822 throw_if_not_attached (get_to (component), sys)
@@ -2911,16 +2892,6 @@ function check_component_addition(
29112892 return
29122893end
29132894
2914- function check_component_addition (sys:: System , dyn_branch:: DynamicBranch ; kwargs... )
2915- if ! _is_deserialization_in_progress (sys)
2916- throw_if_not_attached (dyn_branch. branch, sys)
2917- end
2918- arc = get_arc (dyn_branch)
2919- throw_if_not_attached (get_from (arc), sys)
2920- throw_if_not_attached (get_to (arc), sys)
2921- return
2922- end
2923-
29242895function check_component_addition (sys:: System , dyn_injector:: DynamicInjection ; kwargs... )
29252896 if _is_deserialization_in_progress (sys)
29262897 # Ordering of component addition makes these checks impossible.
@@ -2977,12 +2948,6 @@ function handle_component_addition!(sys::System, component::Branch; kwargs...)
29772948 return
29782949end
29792950
2980- function handle_component_addition! (sys:: System , component:: DynamicBranch ; kwargs... )
2981- _handle_branch_addition_common! (sys, component)
2982- remove_component! (sys, component. branch)
2983- return
2984- end
2985-
29862951function handle_component_addition! (sys:: System , dyn_injector:: DynamicInjection ; kwargs... )
29872952 static_injector = kwargs[:static_injector ]
29882953 static_base_power = _get_base_power (static_injector)
0 commit comments