Skip to content

Commit a468860

Browse files
committed
Fix failing tests
1 parent a5829f9 commit a468860

6 files changed

Lines changed: 9 additions & 5 deletions

File tree

pyreason/scripts/interpretation/interpretation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ def _determine_edge_head_vars(head_fns, head_fns_vars, groundings, head_function
20562056
head_groundings.append(numba.typed.List.empty_list(node_type)) # For target
20572057
is_func = numba.typed.List([False, False])
20582058

2059-
# For node rule only two elements
2059+
# For edge rule only two elements
20602060
for i in range(2):
20612061
fn_name = head_fns[i]
20622062
fn_vars = head_fns_vars[i]

pyreason/scripts/interpretation/interpretation_fp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2176,7 +2176,7 @@ def _determine_edge_head_vars(head_fns, head_fns_vars, groundings, head_function
21762176
head_groundings.append(numba.typed.List.empty_list(node_type)) # For target
21772177
is_func = numba.typed.List([False, False])
21782178

2179-
# For node rule only two elements
2179+
# For edge rule only two elements
21802180
for i in range(2):
21812181
fn_name = head_fns[i]
21822182
fn_vars = head_fns_vars[i]

pyreason/scripts/interpretation/interpretation_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ def _determine_edge_head_vars(head_fns, head_fns_vars, groundings, head_function
20562056
head_groundings.append(numba.typed.List.empty_list(node_type)) # For target
20572057
is_func = numba.typed.List([False, False])
20582058

2059-
# For node rule only two elements
2059+
# For edge rule only two elements
20602060
for i in range(2):
20612061
fn_name = head_fns[i]
20622062
fn_vars = head_fns_vars[i]

tests/unit/disable_jit/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def is_static(self):
116116
"allow_ground_rules": True,
117117
"max_facts_time": 0,
118118
"annotation_functions": {},
119+
"head_functions": (),
119120
"convergence_mode": "perfect_convergence",
120121
"convergence_delta": 0,
121122
"verbose": False,
@@ -162,6 +163,7 @@ def run(**overrides):
162163
params["allow_ground_rules"],
163164
params["max_facts_time"],
164165
params["annotation_functions"],
166+
params["head_functions"],
165167
params["convergence_mode"],
166168
params["convergence_delta"],
167169
params["verbose"],

tests/unit/disable_jit/interpretations/test_interpretation_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def reason(
186186
allow_ground_rules,
187187
max_facts_time,
188188
annotation_functions,
189+
head_functions,
189190
convergence_mode,
190191
convergence_delta,
191192
verbose,
@@ -228,6 +229,7 @@ def reason(
228229
allow_ground_rules,
229230
max_facts_time,
230231
annotation_functions,
232+
head_functions,
231233
convergence_mode,
232234
convergence_delta,
233235
[0],

tests/unit/disable_jit/interpretations/test_interpretation_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_interpretation_init_neighbors(shim_types):
7070
g,
7171
{},
7272
{},
73-
{},
73+
(),
7474
False,
7575
False,
7676
False,
@@ -205,7 +205,7 @@ def build_interp():
205205
g,
206206
{},
207207
{},
208-
{},
208+
(),
209209
False,
210210
False,
211211
False,

0 commit comments

Comments
 (0)