We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d9b1d7 commit eae32afCopy full SHA for eae32af
causal_testing/surrogate/surrogate_search_algorithms.py
@@ -102,7 +102,10 @@ def create_gene_types(
102
if rel_split[1] == ">=":
103
var_space[rel_split[0]]["low"] = int(rel_split[2])
104
elif rel_split[1] == "<=":
105
- var_space[rel_split[0]]["high"] = int(rel_split[2])
+ if specification.scenario.variables.get(rel_split[0]).datatype == int:
106
+ var_space[rel_split[0]]["high"] = int(rel_split[2]) + 1
107
+ else:
108
+ var_space[rel_split[0]]["high"] = int(rel_split[2])
109
110
gene_space = []
111
gene_space.append(var_space[surrogate_model.treatment])
0 commit comments