Skip to content

Commit a724544

Browse files
zerozero
authored andcommitted
Run JuliaFormatter (margin=80) to satisfy format-check
1 parent 59c17c9 commit a724544

6 files changed

Lines changed: 30 additions & 44 deletions

docs/src/examples/Thermal_Generation_Dispatch_Example.jl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ Plots.plot(
158158
d,
159159
data_results[1, :, 1:(I+1)];
160160
title = "Generation by Demand",
161-
label = ["Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"],
161+
label = [
162+
"Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"
163+
],
162164
xlabel = "Demand [unit]",
163165
ylabel = "Generation [unit]",
164166
)
@@ -168,7 +170,9 @@ Plots.plot(
168170
d,
169171
data_results[1, :, (I+2):(2*(I+1))];
170172
title = "Sensitivity of Generation by Demand",
171-
label = ["T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"],
173+
label = [
174+
"T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"
175+
],
172176
xlabel = "Demand [unit]",
173177
ylabel = "Sensitivity [-]",
174178
)
@@ -179,7 +183,9 @@ Plots.plot(
179183
d,
180184
data_results[2, :, 1:(I+1)];
181185
title = "Generation by Demand",
182-
label = ["Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"],
186+
label = [
187+
"Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"
188+
],
183189
xlabel = "Demand [unit]",
184190
ylabel = "Generation [unit]",
185191
)
@@ -189,7 +195,9 @@ Plots.plot(
189195
d,
190196
data_results[2, :, (I+2):(2*(I+1))];
191197
title = "Sensitivity of Generation by Demand",
192-
label = ["T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"],
198+
label = [
199+
"T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"
200+
],
193201
xlabel = "Demand [unit]",
194202
ylabel = "Sensitivity [-]",
195203
)

docs/src/examples/Thermal_Generation_Dispatch_Example_new.jl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ Plots.plot(
154154
d,
155155
data_results[1, :, 1:(I+1)];
156156
title = "Generation by Demand",
157-
label = ["Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"],
157+
label = [
158+
"Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"
159+
],
158160
xlabel = "Demand [unit]",
159161
ylabel = "Generation [unit]",
160162
)
@@ -164,7 +166,9 @@ Plots.plot(
164166
d,
165167
data_results[1, :, (I+2):(2*(I+1))];
166168
title = "Sensitivity of Generation by Demand",
167-
label = ["T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"],
169+
label = [
170+
"T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"
171+
],
168172
xlabel = "Demand [unit]",
169173
ylabel = "Sensitivity [-]",
170174
)
@@ -175,7 +179,9 @@ Plots.plot(
175179
d,
176180
data_results[2, :, 1:(I+1)];
177181
title = "Generation by Demand",
178-
label = ["Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"],
182+
label = [
183+
"Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"
184+
],
179185
xlabel = "Demand [unit]",
180186
ylabel = "Generation [unit]",
181187
)
@@ -185,7 +191,9 @@ Plots.plot(
185191
d,
186192
data_results[2, :, (I+2):(2*(I+1))];
187193
title = "Sensitivity of Generation by Demand",
188-
label = ["T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"],
194+
label = [
195+
"T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"
196+
],
189197
xlabel = "Demand [unit]",
190198
ylabel = "Sensitivity [-]",
191199
)

docs/src/examples/autotuning-ridge.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ for α in αs
8686
ŷ_test = X_test *
8787
ŷ_train = X_train *
8888
push!(mse_test, LinearAlgebra.norm(ŷ_test - y_test)^2 / (2 * Ntest * D))
89-
push!(
90-
mse_train,
91-
LinearAlgebra.norm(ŷ_train - y_train)^2 / (2 * Ntrain * D),
92-
)
89+
push!(mse_train, LinearAlgebra.norm(ŷ_train - y_train)^2 / (2 * Ntrain * D))
9390
end
9491

9592
# Visualize the Mean Score Error metric

docs/src/examples/autotuning-ridge_new.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ for α in αs
9393
ŷ_test = X_test *
9494
ŷ_train = X_train *
9595
push!(mse_test, LinearAlgebra.norm(ŷ_test - y_test)^2 / (2 * Ntest * D))
96-
push!(
97-
mse_train,
98-
LinearAlgebra.norm(ŷ_train - y_train)^2 / (2 * Ntrain * D),
99-
)
96+
push!(mse_train, LinearAlgebra.norm(ŷ_train - y_train)^2 / (2 * Ntrain * D))
10097
end
10198

10299
# Visualize the Mean Score Error metric

docs/src/examples/sensitivity-analysis-ridge.jl

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,7 @@ p = Plots.scatter(
140140
label = "",
141141
)
142142
mi, ma = minimum(X), maximum(X)
143-
Plots.plot!(
144-
p,
145-
[mi, ma],
146-
[mi *+ b̂, ma *+ b̂];
147-
color = :blue,
148-
label = "",
149-
)
143+
Plots.plot!(p, [mi, ma], [mi *+ b̂, ma *+ b̂]; color = :blue, label = "")
150144
Plots.title!("Regression slope sensitivity with respect to x")
151145

152146
#
@@ -159,13 +153,7 @@ p = Plots.scatter(
159153
label = "",
160154
)
161155
mi, ma = minimum(X), maximum(X)
162-
Plots.plot!(
163-
p,
164-
[mi, ma],
165-
[mi *+ b̂, ma *+ b̂];
166-
color = :blue,
167-
label = "",
168-
)
156+
Plots.plot!(p, [mi, ma], [mi *+ b̂, ma *+ b̂]; color = :blue, label = "")
169157
Plots.title!("Regression slope sensitivity with respect to y")
170158

171159
# Note the points with less central `x` values induce a greater y sensitivity of the slope.

docs/src/examples/sensitivity-analysis-ridge_new.jl

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,7 @@ p = Plots.scatter(
140140
label = "",
141141
)
142142
mi, ma = minimum(X), maximum(X)
143-
Plots.plot!(
144-
p,
145-
[mi, ma],
146-
[mi *+ b̂, ma *+ b̂];
147-
color = :blue,
148-
label = "",
149-
)
143+
Plots.plot!(p, [mi, ma], [mi *+ b̂, ma *+ b̂]; color = :blue, label = "")
150144
Plots.title!("Regression slope sensitivity with respect to x")
151145

152146
#
@@ -159,13 +153,7 @@ p = Plots.scatter(
159153
label = "",
160154
)
161155
mi, ma = minimum(X), maximum(X)
162-
Plots.plot!(
163-
p,
164-
[mi, ma],
165-
[mi *+ b̂, ma *+ b̂];
166-
color = :blue,
167-
label = "",
168-
)
156+
Plots.plot!(p, [mi, ma], [mi *+ b̂, ma *+ b̂]; color = :blue, label = "")
169157
Plots.title!("Regression slope sensitivity with respect to y")
170158

171159
# Note the points with less central `x` values induce a greater y sensitivity of the slope.

0 commit comments

Comments
 (0)