rbbt-dm 1.1.15 → 1.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e12a29723724a2bd6511751389ba939a9812d268
4
- data.tar.gz: 8aa95f36ff74ec63e1880817a58d35474ae7b43e
3
+ metadata.gz: 0ae479006dfc634dda28affa527fd67a90215c95
4
+ data.tar.gz: d6b3e24779cf07cf276dc7273338e9bf04ed5f49
5
5
  SHA512:
6
- metadata.gz: d6d65757c611cbacebbc3450404cdf606d800e261e949bab813a4f5beffe825fce270aa554ffba49df58c2baceae680f908041e8821ec93a5e8eded6bd61ba14
7
- data.tar.gz: 3b797b984c2c7e6b89fd005a0861dbff432a7bc6460bb812b8e3801d5a268f3fdf068d39256a6d414e2d79dc8848bf56d9c6d01faa917f480af339a27bd62fa5
6
+ metadata.gz: ecc5a24854bc69ccc075f652430f31db3e9e769b23ca87e2aa4c76441ccc5bedff2898e1575e28b83fb52f15f309e861cb528235c14f6e7b0b81c5d87c556f89
7
+ data.tar.gz: 2ccfacc38784a9c4fe83e8e82ddebb7f17ab6ae9a93c703c51632e7fb6e0ca7e5443979bffeab0ded34f9298e0b553c8e78b362567e8d0cb89368e120f99d8e4
@@ -260,15 +260,19 @@ module RandomWalk
260
260
  repo_file = "/tmp/rw_repo7"
261
261
  repo = Persist.open_tokyocabinet(repo_file, false, :float_array)
262
262
  key = Misc.digest([size, total, missing, times, scoring_method].inspect)
263
- repo.read
264
- if repo[key]
265
- repo[key]
266
- else
267
- p = permutations(size, total, missing, times)
268
- repo.write_and_close do
269
- repo[key] = p
263
+ begin
264
+ repo.read
265
+ if repo[key]
266
+ repo[key]
267
+ else
268
+ p = permutations(size, total, missing, times)
269
+ repo.write_and_close do
270
+ repo[key] = p
271
+ end
272
+ p
270
273
  end
271
- p
274
+ ensure
275
+ repo.close
272
276
  end
273
277
  end
274
278
 
@@ -63,7 +63,6 @@ module TSV
63
63
 
64
64
  signature_sizes = fields.collect{|field| slice(field).values.select{|v| v and not (v.respond_to?(:empty?) and v.empty?)}.length}
65
65
 
66
- #score = RankProduct.score(positions, fields.collect{ tsv.size })
67
66
  score = RankProduct.score(positions, signature_sizes)
68
67
 
69
68
  score
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-dm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.15
4
+ version: 1.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-06 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util