Skip to content

Commit

Permalink
Merge pull request #199 from Habush/bug-fixes
Browse files Browse the repository at this point in the history
Remove the current mult-threading
  • Loading branch information
tanksha authored Apr 27, 2020
2 parents 9feabc2 + 57bf1a0 commit 3332a17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion annotation/main.scm
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
(biogrid-pairs (make-atom-set))
(biogrid-reported-pathways (make-atom-set)))
(let* ([fns (parse-request genes-list file-name request)]
[result (par-map (lambda (x) (x)) fns)]
[result (map (lambda (x) (x)) fns)]
[graphs (map (lambda (res) (atomese-parser res)) result)]
[super-graph (make-graph (append-map (lambda (graph) (graph-nodes graph)) graphs)
(append-map (lambda (graph) (graph-edges graph)) graphs)
Expand Down
5 changes: 1 addition & 4 deletions annotation/util.scm
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@
#:use-module (opencog bioscience)
#:use-module (annotation graph)
#:use-module (ice-9 optargs)
; #:use-module (rnrs base)
#:use-module (rnrs exceptions)
#:use-module (ice-9 textual-ports)
#:use-module (ice-9 regex)
#:use-module (srfi srfi-1)
#:use-module (ice-9 match)
#:use-module (ice-9 threads)
#:export (create-node
create-edge
write-to-file
Expand All @@ -54,9 +52,8 @@
This differs from ordinary caching/memoizing utilities as it provides
special handling for Atom arguments.
"
(define mtx (make-mutex))
(define cache (make-afunc-cache FUNC))
(lambda (ATOM) (with-mutex mtx (cache ATOM)))
(lambda (ATOM) (cache ATOM))
)

; ----------------------------------------------------
Expand Down

0 comments on commit 3332a17

Please sign in to comment.