File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -99,13 +99,14 @@ def create_gene_types(
99
99
rel_split = str (relationship ).split (" " )
100
100
101
101
if rel_split [0 ] in var_space :
102
+ datatype = specification .scenario .variables .get (rel_split [0 ]).datatype
102
103
if rel_split [1 ] == ">=" :
103
- var_space [rel_split [0 ]]["low" ] = int (rel_split [2 ])
104
+ var_space [rel_split [0 ]]["low" ] = datatype (rel_split [2 ])
104
105
elif rel_split [1 ] == "<=" :
105
- if specification . scenario . variables . get ( rel_split [ 0 ]). datatype == int :
106
+ if datatype == int :
106
107
var_space [rel_split [0 ]]["high" ] = int (rel_split [2 ]) + 1
107
108
else :
108
- var_space [rel_split [0 ]]["high" ] = int (rel_split [2 ])
109
+ var_space [rel_split [0 ]]["high" ] = datatype (rel_split [2 ])
109
110
110
111
gene_space = []
111
112
gene_space .append (var_space [surrogate_model .treatment ])
You can’t perform that action at this time.
0 commit comments