Skip to content

Commit 35c41a5

Browse files
committed
Remove debug logging from AveragedSpecifiedTimes function
1 parent c20c9b0 commit 35c41a5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/OutputWriters/windowed_time_average.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ AveragedSpecifiedTimes(specified_times::SpecifiedTimes; window, stride=1) =
115115
AveragedSpecifiedTimes(specified_times, window, stride, false)
116116

117117
AveragedSpecifiedTimes(times; window, kw...) = AveragedSpecifiedTimes(times, window; kw...)
118-
# AveragedSpecifiedTimes(times; window::Float64; kw...) = AveragedSpecifiedTimes(SpecifiedTimes(times); window, kw...)
119118

120119
function AveragedSpecifiedTimes(times, window::Vector{Float64}; kw...)
121120
length(window) == length(times) || throw(ArgumentError("When providing a vector of windows, its length $(length(window)) must match the number of specified times $(length(times))."))
@@ -124,9 +123,6 @@ function AveragedSpecifiedTimes(times, window::Vector{Float64}; kw...)
124123
sorted_window = window[perm]
125124
time_diff = diff(vcat(0, sorted_times))
126125

127-
@info "timediff", time_diff
128-
@info "sortedwindow", sorted_window
129-
130126
any(time_diff .- sorted_window .< -eps(eltype(window))) && throw(ArgumentError("Averaging windows overlap. Ensure that for each specified time tᵢ, tᵢ - windowᵢ ≥ tᵢ₋₁."))
131127

132128
return AveragedSpecifiedTimes(SpecifiedTimes(sorted_times); window=sorted_window, kw...)

0 commit comments

Comments
 (0)