Skip to content

Commit aaa79c3

Browse files
committed
Throw error for uncompatible specs
1 parent 7697561 commit aaa79c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dscim/preprocessing/preprocessing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def reduce_damages(
8888
), "Adding up does not take an eta argument. Please set to None."
8989
# client = Client(n_workers=35, memory_limit="9G", threads_per_worker=1)
9090

91+
if recipe == "risk_aversion":
92+
assert not quantreg, "Quantile regression is not compatible with risk aversion. Please set quantreg to False."
93+
9194
with open(config) as stream:
9295
c = yaml.safe_load(stream)
9396
params = c["sectors"][sector]

0 commit comments

Comments
 (0)