Skip to content

Commit b7165db

Browse files
committed
ruff
1 parent 6557cc5 commit b7165db

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/dscim/menu/main_recipe.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,11 @@ def __init__(
254254
# 'constant_model_collapsed' should be here except that we allow
255255
# for a collapsed-model Ramsey rate to be calculated (for labour
256256
# and energy purposes)
257-
if self.discounting_type in ["constant", "constant_model_collapsed", "constant_gwr"]:
257+
if self.discounting_type in [
258+
"constant",
259+
"constant_model_collapsed",
260+
"constant_gwr",
261+
]:
258262
self.stream_discount_factors = None
259263

260264
# assert formulas for which clip_gmsl is implemented

src/dscim/preprocessing/preprocessing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def ce_from_chunk(
5555
)
5656
else:
5757
result = np.maximum(
58-
calculation,
59-
bottom_code,
58+
calculation,
59+
bottom_code,
6060
)
6161
elif recipe == "risk_aversion":
6262
result = ce_func(
@@ -121,7 +121,7 @@ def reduce_damages(
121121
"ssp": 1,
122122
}
123123
if quantreg:
124-
chunkies['batch'] = 1
124+
chunkies["batch"] = 1
125125
ce_batch_dims = [i for i in gdppc.dims] + [
126126
i for i in ds.dims if i not in gdppc.dims
127127
]

0 commit comments

Comments
 (0)