miga-base 1.3.13.4 → 1.3.13.6

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
  SHA256:
3
- metadata.gz: bdf054cb57b5a84d9ffb450b440a4dc6310e8aaf826d9b2160f0eecabce16385
4
- data.tar.gz: 237517417fa21ad566df29aa9da67a8307b8b6a3988b0fae16fd4b594d2cc6f8
3
+ metadata.gz: 86ce0bd3f3cd40ab7c4883d729bf43a1eb18303d034063714dcc0ae7944079c7
4
+ data.tar.gz: '03957e37bb90e94a63c4a746fbccab48965dc29c614439b19848ffe8f40ee98c'
5
5
  SHA512:
6
- metadata.gz: aae8695fab93405b5bb96063c35b12218eed2c78fcea1b2f308589bf29e600c7fbd89515cff59fc1b378b090b0786d55d627444d88810c7c25b202c0d772a310
7
- data.tar.gz: 923d60bb47caeab98c9b062dc8af575e8dbe2950cf0602e123cfe8e7533ccdb0aaa5034d1bf0006d5e5f418f7004777c08f861a1e2eb9d143a79044ece69a2d3
6
+ metadata.gz: abe0f5938f5af2686bcc7c4d810c9ce0388e561250f1b4422234ba91e0dae0a7e9bc2b9dcbf8105edfd128d9110f7b72c79a88df1084f86b38cdac23323ba298
7
+ data.tar.gz: fbff0a7738631a4b8756d2c6ff49520e07903391ca07d4a68a2b8e2ace65e56bd8297a33a5ea8b999a805a552454e4e621af337ca772ee864f851975e471f340
@@ -37,10 +37,11 @@ module MiGA::Cli::Action::Doctor::Base
37
37
  return if fix.empty?
38
38
 
39
39
  cli.say("- Fixing #{fix.size} datasets")
40
- fix.each_with_index do |d_n, k|
41
- cli.advance(' > Fixing', k + 1, fix.size, false)
40
+ MiGA::Parallel.distribute(fix, cli[:threads]) do |d_n, idx, thr|
41
+ cli.advance(' > Fixing', idx + 1, fix.size, false) if thr == 0
42
42
  p.dataset(d_n).cleanup_distances!
43
43
  end
44
+ cli.say
44
45
  end
45
46
 
46
47
  ##
data/lib/miga/json.rb CHANGED
@@ -1,6 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'json'
4
+ begin
5
+ require 'oj'
6
+ OJ.mimic_JSON()
7
+ rescue LoadError
8
+ # Do nothing if not available
9
+ end
4
10
 
5
11
  ##
6
12
  # Taxonomic classifications in MiGA.
data/lib/miga/version.rb CHANGED
@@ -12,7 +12,7 @@ module MiGA
12
12
  # - String indicating release status:
13
13
  # - rc* release candidate, not released as gem
14
14
  # - [0-9]+ stable release, released as gem
15
- VERSION = [1.3, 13, 4].freeze
15
+ VERSION = [1.3, 13, 6].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.13.4
4
+ version: 1.3.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R