You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rodrigomha You should be able to call add_component!(sys, hybrid) and the the code will do everything required because of the method below, which gets called during the add. These behaviors should definitely be documented.
function handle_component_addition!(
sys::System,
subsystem::StaticInjectionSubsystem;
kwargs...,
)
for subcomponent in get_subcomponents(subsystem)
if is_attached(subcomponent, sys)
IS.mask_component!(sys.data, subcomponent)
copy_subcomponent_time_series!(subsystem, subcomponent)
else
IS.add_masked_component!(sys.data, subcomponent)
end
end
end
@rodrigomha You should be able to call add_component!(sys, hybrid) and the the code will do everything required because of the method below, which gets called during the add. These behaviors should definitely be documented.
function handle_component_addition!(
sys::System,
subsystem::StaticInjectionSubsystem;
kwargs...,
)
for subcomponent in get_subcomponents(subsystem)
if is_attached(subcomponent, sys)
IS.mask_component!(sys.data, subcomponent)
copy_subcomponent_time_series!(subsystem, subcomponent)
else
IS.add_masked_component!(sys.data, subcomponent)
end
end
end
Thanks Dan. Yeah, I was not aware that adding the hybrid immediately remove the subcomponents for the system.
jd-lara
transferred this issue from NREL-Sienna/PowerSystems.jl
Mar 6, 2024
Basically, when creating a HybridSystem from components already that has a
time_series
, the process requires to:(I think?)
The text was updated successfully, but these errors were encountered: