Skip to content

Commit

Permalink
Try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Oct 25, 2023
1 parent 22fd670 commit 16cafe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_structure/temporal_structure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ function _generate_time_slice_relationships!(m::Model)
succeeding_time_slices = Dict(
t => to_time_slice(m, t=TimeSlice(end_(t), end_(t) + Minute(1))) for t in all_time_slices
)
if m.ext[:spineopt].temporal_structure[:window_count] > 1
if get(m.ext[:spineopt].temporal_structure, :window_count, 1) > 1
# Ensure continuity on the window boundary.
# This is needed in case a block ends before the window, or starts after the window.
# When that's the case, there is a gap on the window boundary
Expand Down

0 comments on commit 16cafe9

Please sign in to comment.