Skip to content

Commit

Permalink
Merge pull request opencog#26 from ngeiswei/merge-opencog-to-singnet
Browse files Browse the repository at this point in the history
Merge opencog -> singnet
  • Loading branch information
ngeiswei authored Sep 10, 2020
2 parents a04f070 + 2fb5ca1 commit 19fa8e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions opencog/cython/opencog/logger.pyx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from ure cimport ure_logger as c_ure_logger
from opencog.logger cimport wrap_clogger, cLogger

def ure_logger():
z = wrap_clogger(&c_ure_logger())
return z
5 changes: 5 additions & 0 deletions opencog/cython/opencog/ure.pxd
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from libcpp.set cimport set
from libcpp.vector cimport vector
from opencog.atomspace cimport cHandle, cAtomSpace
from opencog.logger cimport cLogger


cdef extern from "opencog/ure/forwardchainer/ForwardChainer.h" namespace "opencog":
Expand Down Expand Up @@ -69,3 +70,7 @@ cdef extern from "opencog/ure/backwardchainer/BackwardChainer.h" namespace "open

void do_chain() except +
cHandle get_results() const


cdef extern from "opencog/ure/URELogger.h" namespace "opencog":
cdef cLogger& ure_logger()
3 changes: 2 additions & 1 deletion opencog/cython/opencog/ure.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
# things work or not

include "forwardchainer.pyx"
include "backwardchainer.pyx"
include "backwardchainer.pyx"
include "logger.pyx"

0 comments on commit 19fa8e5

Please sign in to comment.