Mercurial > code > home > repos > homeauto
changeset 1119:98aad873874d
fix oneshot
Ignore-this: cd3f3076031766d8f82c6130d1b31e05
darcs-hash:13b69fb6a76f059bf0eaa7ccdf9f4c96588c86f6
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 12 Oct 2016 18:36:49 -0700 |
parents | ae6b5604950d |
children | ba0cec7e1ac9 |
files | service/reasoning/inputgraph.py service/reasoning/reasoning.py |
diffstat | 2 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/service/reasoning/inputgraph.py Sun Oct 09 13:58:51 2016 -0700 +++ b/service/reasoning/inputgraph.py Wed Oct 12 18:36:49 2016 -0700 @@ -129,7 +129,7 @@ self._oneShotAdditionGraph = g self._combinedGraph = None try: - self.onChange(self, oneShot=True, oneShotGraph=g) + self.onChangeLocal(oneShot=True, oneShotGraph=g) finally: self._oneShotAdditionGraph = None self._combinedGraph = None
--- a/service/reasoning/reasoning.py Sun Oct 09 13:58:51 2016 -0700 +++ b/service/reasoning/reasoning.py Wed Oct 12 18:36:49 2016 -0700 @@ -93,10 +93,7 @@ statements are already in inputGraph.getGraph(). """ log.info("----------------------") - log.info("graphChanged:") - if oneShot: - for s in oneShotGraph: - log.debug(" oneshot stmt %r", s) + log.info("graphChanged (oneShot=%s):", oneShot) t1 = time.time() oldInferred = self.inferred try: