Skip to content

Commit dedd82e

Browse files
author
Jack Dunham
committed
The EachRegion adapter now returns itself from iterate instead of the region plan.
This is to keep it consistant with other examples of `AbstractNetworkIterator`.
1 parent 33b9e28 commit dedd82e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solvers/adapters.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ IncrementOnly(adapter::IncrementOnly) = adapter
2020
struct EachRegion{SweepIterator} <: AbstractNetworkIterator
2121
2222
Adapter that flattens each region iterator in the parent sweep iterator into a single
23-
iterator, returning `region => kwargs`.
23+
iterator.
2424
"""
2525
struct EachRegion{SI<:SweepIterator} <: AbstractNetworkIterator
2626
parent::SI
@@ -42,5 +42,5 @@ end
4242
function compute!(adapter::EachRegion)
4343
region_iter = region_iterator(adapter.parent)
4444
compute!(region_iter)
45-
return current_region_plan(region_iter)
45+
return adapter
4646
end

0 commit comments

Comments
 (0)