Skip to content

Commit 7706665

Browse files
committed
_mechanical_torque unique_timestamps default to true
1 parent 48d1389 commit 7706665

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/post_processing/post_proc_generator.jl

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ function _mechanical_torque(
10181018
name::String,
10191019
res::SimulationResults,
10201020
dt::Union{Nothing, Float64, Vector{Float64}},
1021-
unique_timestamps::Bool,
1021+
unique_timestamps::Bool = true,
10221022
)
10231023
# TODO: This will not plot correctly when changing P_ref in a callback
10241024
ts, _ = _post_proc_state_series(res.solution, 1, dt, unique_timestamps)
@@ -1038,7 +1038,7 @@ function _mechanical_torque(
10381038
name::String,
10391039
res::SimulationResults,
10401040
dt::Union{Nothing, Float64, Vector{Float64}},
1041-
unique_timestamps::Bool,
1041+
unique_timestamps::Bool = true,
10421042
)
10431043
# Get params
10441044
Tc = PSY.get_Tc(tg)
@@ -1067,7 +1067,7 @@ function _mechanical_torque(
10671067
name::String,
10681068
res::SimulationResults,
10691069
dt::Union{Nothing, Float64, Vector{Float64}},
1070-
unique_timestamps::Bool,
1070+
unique_timestamps::Bool = true,
10711071
)
10721072
# TODO: This will not plot correctly when changing P_ref in a callback
10731073
# Get params
@@ -1097,7 +1097,7 @@ function _mechanical_torque(
10971097
name::String,
10981098
res::SimulationResults,
10991099
dt::Union{Nothing, Float64, Vector{Float64}},
1100-
unique_timestamps::Bool,
1100+
unique_timestamps::Bool = true,
11011101
)
11021102
# TODO: This will not plot correctly when changing P_ref in a callback
11031103
# Get params
@@ -1133,7 +1133,7 @@ function _mechanical_torque(
11331133
name::String,
11341134
res::SimulationResults,
11351135
dt::Union{Nothing, Float64, Vector{Float64}},
1136-
unique_timestamps::Bool,
1136+
unique_timestamps::Bool = true,
11371137
)
11381138
# Get params
11391139
D_turb = PSY.get_D_turb(tg)
@@ -1154,6 +1154,7 @@ function _mechanical_torque(
11541154
name::String,
11551155
res::SimulationResults,
11561156
dt::Union{Nothing, Float64},
1157+
unique_timestamps::Bool = true,
11571158
)
11581159
ts, x_a3 = post_proc_state_series(res, (name, :x_a3), dt, unique_timestamps)
11591160
return ts, x_a3
@@ -1167,7 +1168,7 @@ function _mechanical_torque(
11671168
name::String,
11681169
res::SimulationResults,
11691170
dt::Union{Nothing, Float64, Vector{Float64}},
1170-
unique_timestamps::Bool,
1171+
unique_timestamps::Bool = true,
11711172
)
11721173
# Get params
11731174
q_nl = PSY.get_q_nl(tg)
@@ -1194,7 +1195,7 @@ function _mechanical_torque(
11941195
name::String,
11951196
res::SimulationResults,
11961197
dt::Union{Nothing, Float64, Vector{Float64}},
1197-
unique_timestamps::Bool = true
1198+
unique_timestamps::Bool = true,
11981199
)
11991200
# Get params
12001201
D_turb = PSY.get_D_turb(tg)
@@ -1226,7 +1227,7 @@ function _mechanical_torque(
12261227
name::String,
12271228
res::SimulationResults,
12281229
dt::Union{Nothing, Float64, Vector{Float64}},
1229-
unique_timestamps::Bool,
1230+
unique_timestamps::Bool = true,
12301231
)
12311232
# Get params
12321233
D = PSY.get_D(tg)

0 commit comments

Comments
 (0)