Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Aug 27, 2024
1 parent 7c19950 commit e10a149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/run_spineopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ function _test_dont_overwrite_results_on_rolling()
# and check that only `t`s within the optimisation window have a `unit_flow` value
@testset for at in analysis_times, t in (at - Hour(12)):Hour(1):(at + Hour(12))
window_start = max(DateTime(2000, 1, 1), at)
window_end = min(DateTime(2000, 1, 2), at + Hour(9))
window_end = at + Hour(9)
obs_unit_flow = Y.unit_flow(; flow_key..., analysis_time=at, t=t)
if window_start <= t < window_end
exp_unit_flow = (t < DateTime(2000, 1, 1, 12)) ? 50 : 90
Expand Down

0 comments on commit e10a149

Please sign in to comment.