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
In this case the last activation is not executed
from experta import * class KE(KnowledgeEngine): @Rule( Fact(s=True), Fact('a') ) def foo(self): print("foo") @Rule( AS.f << Fact(s=False), Fact('a') ) def bar(self, f): print("bar") self.modify(f, s=True) ke=KE() ke.reset() ke.declare(Fact("a")) ke.declare(Fact(s=False)) ke.run()
It should print bar and then foo, but it only prints bar.
bar
foo
The text was updated successfully, but these errors were encountered:
Test issue #7
c8e5dc5
7777a55
Fix issue #11 that was introduced with #7.
a268513
nilp0inter
No branches or pull requests
In this case the last activation is not executed
It should print
bar
and thenfoo
, but it only printsbar
.The text was updated successfully, but these errors were encountered: