@@ -1018,7 +1018,7 @@ function _mechanical_torque(
1018
1018
name:: String ,
1019
1019
res:: SimulationResults ,
1020
1020
dt:: Union{Nothing, Float64, Vector{Float64}} ,
1021
- unique_timestamps:: Bool ,
1021
+ unique_timestamps:: Bool = true ,
1022
1022
)
1023
1023
# TODO : This will not plot correctly when changing P_ref in a callback
1024
1024
ts, _ = _post_proc_state_series (res. solution, 1 , dt, unique_timestamps)
@@ -1038,7 +1038,7 @@ function _mechanical_torque(
1038
1038
name:: String ,
1039
1039
res:: SimulationResults ,
1040
1040
dt:: Union{Nothing, Float64, Vector{Float64}} ,
1041
- unique_timestamps:: Bool ,
1041
+ unique_timestamps:: Bool = true ,
1042
1042
)
1043
1043
# Get params
1044
1044
Tc = PSY. get_Tc (tg)
@@ -1067,7 +1067,7 @@ function _mechanical_torque(
1067
1067
name:: String ,
1068
1068
res:: SimulationResults ,
1069
1069
dt:: Union{Nothing, Float64, Vector{Float64}} ,
1070
- unique_timestamps:: Bool ,
1070
+ unique_timestamps:: Bool = true ,
1071
1071
)
1072
1072
# TODO : This will not plot correctly when changing P_ref in a callback
1073
1073
# Get params
@@ -1097,7 +1097,7 @@ function _mechanical_torque(
1097
1097
name:: String ,
1098
1098
res:: SimulationResults ,
1099
1099
dt:: Union{Nothing, Float64, Vector{Float64}} ,
1100
- unique_timestamps:: Bool ,
1100
+ unique_timestamps:: Bool = true ,
1101
1101
)
1102
1102
# TODO : This will not plot correctly when changing P_ref in a callback
1103
1103
# Get params
@@ -1133,7 +1133,7 @@ function _mechanical_torque(
1133
1133
name:: String ,
1134
1134
res:: SimulationResults ,
1135
1135
dt:: Union{Nothing, Float64, Vector{Float64}} ,
1136
- unique_timestamps:: Bool ,
1136
+ unique_timestamps:: Bool = true ,
1137
1137
)
1138
1138
# Get params
1139
1139
D_turb = PSY. get_D_turb (tg)
@@ -1154,6 +1154,7 @@ function _mechanical_torque(
1154
1154
name:: String ,
1155
1155
res:: SimulationResults ,
1156
1156
dt:: Union{Nothing, Float64} ,
1157
+ unique_timestamps:: Bool = true ,
1157
1158
)
1158
1159
ts, x_a3 = post_proc_state_series (res, (name, :x_a3 ), dt, unique_timestamps)
1159
1160
return ts, x_a3
@@ -1167,7 +1168,7 @@ function _mechanical_torque(
1167
1168
name:: String ,
1168
1169
res:: SimulationResults ,
1169
1170
dt:: Union{Nothing, Float64, Vector{Float64}} ,
1170
- unique_timestamps:: Bool ,
1171
+ unique_timestamps:: Bool = true ,
1171
1172
)
1172
1173
# Get params
1173
1174
q_nl = PSY. get_q_nl (tg)
@@ -1194,7 +1195,7 @@ function _mechanical_torque(
1194
1195
name:: String ,
1195
1196
res:: SimulationResults ,
1196
1197
dt:: Union{Nothing, Float64, Vector{Float64}} ,
1197
- unique_timestamps:: Bool = true
1198
+ unique_timestamps:: Bool = true ,
1198
1199
)
1199
1200
# Get params
1200
1201
D_turb = PSY. get_D_turb (tg)
@@ -1226,7 +1227,7 @@ function _mechanical_torque(
1226
1227
name:: String ,
1227
1228
res:: SimulationResults ,
1228
1229
dt:: Union{Nothing, Float64, Vector{Float64}} ,
1229
- unique_timestamps:: Bool ,
1230
+ unique_timestamps:: Bool = true ,
1230
1231
)
1231
1232
# Get params
1232
1233
D = PSY. get_D (tg)
0 commit comments