Skip to content

Commit 6d16825

Browse files
committed
update commented out method
1 parent 35c41a5 commit 6d16825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OutputWriters/windowed_time_average.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ end
150150
# @info "sortedwindow", sorted_window
151151

152152
# any(time_diff .- sorted_window .< -eps(eltype(window))) && throw(ArgumentError("Averaging windows overlap. Ensure that for each specified time tᵢ, tᵢ - windowᵢ ≥ tᵢ₋₁."))
153+
# return AveragedSpecifiedTimes(SpecifiedTimes(sorted_times); window=sorted_window, kw...)
153154
# elseif window isa Number
154155
# any(time_diff .- window .< -eps(typeof(window))) && throw(ArgumentError("Averaging window $window is too large and causes overlapping windows. Ensure that for each specified time tᵢ, tᵢ - window ≥ tᵢ₋₁."))
156+
# return AveragedSpecifiedTimes(SpecifiedTimes(times); window, kw...)
155157
# else
156158
# throw(ArgumentError("window must be a Float64 or a Vector{Float64}, got $(typeof(window))"))
157159
# end
158-
159-
# return AveragedSpecifiedTimes(SpecifiedTimes(times); window=window, kw...)
160160
# end
161161

162162
get_next_window(schedule::VaryingWindowAveragedSpecifiedTimes) = schedule.window[schedule.specified_times.previous_actuation + 1]

0 commit comments

Comments
 (0)