Skip to content

Commit

Permalink
Merge pull request opencog#10 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 Aug 12, 2021
2 parents fc1e9e0 + 17c4f5a commit 2f7ffe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion atomspace/AtomSpaceBenchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ timepair_t AtomSpaceBenchmark::bm_rmAtom()
for (unsigned int j=0; j<Nloops; j++) {
std::string bar = symb + std::to_string(i*Nloops + j);
guile_define(bar, h);
ss << "(cog-delete-recursive " << bar << ")\n";
ss << "(cog-extract-recursive! " << bar << ")\n";
h = getRandomHandle();
// XXX FIXME --- this may have trouble finding
// anything if Nloops is bigger than the number
Expand Down
6 changes: 3 additions & 3 deletions query-loop/bio-loop.scm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
;; (format #t "Ran triangle ~A in ~6f seconds; got ~A results\n"
;; gene-name (gene-secs) rlen)
(display ".")
(cog-delete result)
(cog-extract! result)
(cons gene-name rlen)
)
gene-list))
Expand Down Expand Up @@ -135,7 +135,7 @@
; (format #t "Ran path ~A in ~6f seconds; got ~A results\n"
; (cog-name pathway) (path-secs) rlen)
(display ".")
(cog-delete result)
(cog-extract! result)
(cons (cog-name pathway) rlen)
)
pathways))
Expand Down Expand Up @@ -163,7 +163,7 @@
; Perform the search
(define path-set (cog-execute! query))
(define pathways (cog-outgoing-set path-set))
(cog-delete path-set)
(cog-extract! path-set)
pathways
)
gene-list)))
Expand Down

0 comments on commit 2f7ffe1

Please sign in to comment.