fix bad call for parameters.
This commit is contained in:
parent
28ce2da3dc
commit
8c2dd1f847
@ -110,8 +110,9 @@ find_factors(K) :-
|
|||||||
\+ currently_defined(K1),
|
\+ currently_defined(K1),
|
||||||
find_factors(K1).
|
find_factors(K1).
|
||||||
|
|
||||||
add_factor(factor(Type, _Id, Ks, _, CPT, Constraints), Ks) :-
|
add_factor(factor(Type, _Id, Ks, _, Phi, Constraints), Ks) :-
|
||||||
F = f(Type, Ks, CPT),
|
F = f(Type, Ks, CPT),
|
||||||
|
( is_list(Phi) -> CPT = Phi ; call(user:Phi, CPT) ),
|
||||||
run(Constraints),
|
run(Constraints),
|
||||||
\+ f(Type, Ks, CPT),
|
\+ f(Type, Ks, CPT),
|
||||||
assert(F).
|
assert(F).
|
||||||
|
Reference in New Issue
Block a user