Skip to content

Commit

Permalink
Merge pull request #1207 from daniel-thom/issue-1203
Browse files Browse the repository at this point in the history
Fix get_buses when a bus does not have an AggregationTopology
  • Loading branch information
jd-lara authored Oct 31, 2024
2 parents f14ccb4 + a603b75 commit ec2c559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ System(; kwargs...)
`"DEVICE_BASE"`, or `"NATURAL_UNITS"`)
By default, time series data is stored in an HDF5 file in the tmp file system to prevent
large datasets from overwhelming system memory (see [Data Storage](@ref)).
large datasets from overwhelming system memory (see [Data Storage](@ref)).
**If the system's time series
data will be larger than the amount of tmp space available**, use the
`time_series_directory` parameter to change its location.
Expand Down Expand Up @@ -1325,7 +1325,7 @@ function _get_buses(data::IS.SystemData, aggregator::T) where {T <: AggregationT
buses = Vector{ACBus}()
for bus in IS.get_components(ACBus, data)
_aggregator = accessor_func(bus)
if IS.get_uuid(_aggregator) == IS.get_uuid(aggregator)
if !isnothing(_aggregator) && IS.get_uuid(_aggregator) == IS.get_uuid(aggregator)
push!(buses, bus)
end
end
Expand Down

0 comments on commit ec2c559

Please sign in to comment.