We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
;;--- KB.clp---;; deftemplate fact_template( (slot slot_1 (type SYMBOL)) ) (assert (fact 1)) (defrule rule1 (fact 1) => ?p <- (assert (fact_template (slot_1 v_1))) (py_foo ?p ))
# run.py import clips clips_env = clips.Environment() clips_env.load("KB.clp") def py_foo(p): p['slot_1'] = 'slot_value' p.assertit() print "Done" clips_env.define_function(py_foo) clips_env.run()
anything after assertit() is not executed.
The text was updated successfully, but these errors were encountered:
Please provide a MWE which reproduces your issue. With the provided example I can't say much. What are the symbols fact_template and python_func?
fact_template
python_func
Sorry, something went wrong.
updated example.
Closing this as invalid, please check issue #13 for explanation.
More precisely: you cannot change or re-assert an already asserted fact.
No branches or pull requests
anything after assertit() is not executed.
The text was updated successfully, but these errors were encountered: