Skip to content

Commit b664f2c

Browse files
committed
error handling
1 parent 58582a0 commit b664f2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

causal_testing/surrogate/surrogate_search_algorithms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def create_gene_types(
107107
var_space[rel_split[0]]["high"] = int(rel_split[2]) + 1
108108
else:
109109
var_space[rel_split[0]]["high"] = datatype(rel_split[2])
110+
else:
111+
raise ValueError(f"Value {rel_split[0]} not found in var_space")
110112

111113
gene_space = []
112114
gene_space.append(var_space[surrogate_model.treatment])

0 commit comments

Comments
 (0)