Skip to content

Commit 7edab0b

Browse files
authored
Merge branch 'master' into develop
2 parents dc60111 + 3e17ad8 commit 7edab0b

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: "LICENSE*|repo_data/"
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.6.0
5+
rev: v5.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -29,7 +29,7 @@ repos:
2929
- id: add-trailing-comma
3030

3131
- repo: https://github.com/asottile/pyupgrade
32-
rev: v3.17.0
32+
rev: v3.18.0
3333
hooks:
3434
- id: pyupgrade
3535
args: [--py39-plus]
@@ -58,7 +58,7 @@ repos:
5858
- id: blackdoc
5959

6060
- repo: https://github.com/psf/black-pre-commit-mirror
61-
rev: 24.8.0
61+
rev: 24.10.0
6262
hooks:
6363
- id: black
6464
language_version: python3.11

workflow/repo_data/config/config.common.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ lines:
130130
500.: "Al/St 560/50 4-bundle 750.0"
131131
765.: "Al/St 560/50 4-bundle 750.0"
132132

133+
134+
lines:
135+
types: #Temp values, replaced.
136+
115.: "Al/St 240/40 2-bundle 220.0"
137+
138.: "Al/St 240/40 2-bundle 220.0"
138+
161.: "Al/St 240/40 2-bundle 220.0"
139+
230.: "Al/St 240/40 2-bundle 220.0"
140+
345.: "Al/St 240/40 4-bundle 380.0"
141+
500.: "Al/St 560/50 4-bundle 750.0"
142+
765.: "Al/St 560/50 4-bundle 750.0"
143+
144+
133145
# docs :
134146
offshore_shape:
135147
use: eez #options are ca_osw, eez

workflow/scripts/cluster_network.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ def n_bounds(model, *n_id):
150150
expr=sum((m.n[i] - L.loc[i] * n_clusters) ** 2 for i in L.index),
151151
sense=po.minimize,
152152
)
153+
154+
if solver_name == "highs":
155+
solver_name = "ipopt"
156+
153157
opt = po.SolverFactory(solver_name)
154158
if not opt.has_capability("quadratic_objective"):
155159
logger.warning(

0 commit comments

Comments
 (0)