Skip to content

Commit 1af059b

Browse files
new format (#72)
1 parent 4a585a2 commit 1af059b

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

src/callbacks_step/analysis.jl

+12-18
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,10 @@ end
108108
109109
Return the time values that correspond to the saved values of the [`errors`](@ref) and [`integrals`](@ref).
110110
"""
111-
function tstops(cb::DiscreteCallback{
112-
Condition,
113-
Affect!
114-
}) where {Condition,
115-
Affect! <:
116-
AnalysisCallback}
111+
function tstops(cb::DiscreteCallback{Condition,
112+
Affect!}) where {Condition,
113+
Affect! <:
114+
AnalysisCallback}
117115
analysis_callback = cb.affect!
118116
return analysis_callback.tstops
119117
end
@@ -124,12 +122,10 @@ end
124122
Return the computed errors for each timestep as a named tuple.
125123
The shape of each entry is (nvariables, ntimesteps).
126124
"""
127-
function errors(cb::DiscreteCallback{
128-
Condition,
129-
Affect!
130-
}) where {Condition,
131-
Affect! <:
132-
AnalysisCallback}
125+
function errors(cb::DiscreteCallback{Condition,
126+
Affect!}) where {Condition,
127+
Affect! <:
128+
AnalysisCallback}
133129
analysis_callback = cb.affect!
134130
names = collect(analysis_callback.analysis_errors)
135131
# "transpose" vector of matrices, first write it as 3d array and then convert it back to vector of matrices
@@ -144,12 +140,10 @@ end
144140
145141
Return the computed integrals for each timestep as a named tuple.
146142
"""
147-
function integrals(cb::DiscreteCallback{
148-
Condition,
149-
Affect!
150-
}) where {Condition,
151-
Affect! <:
152-
AnalysisCallback}
143+
function integrals(cb::DiscreteCallback{Condition,
144+
Affect!}) where {Condition,
145+
Affect! <:
146+
AnalysisCallback}
153147
analysis_callback = cb.affect!
154148
names = collect(Symbol.(nameof.(analysis_callback.analysis_integrals)))
155149
# "transpose" vector of vector

0 commit comments

Comments
 (0)