buncher 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/buncher.rb +2 -2
  2. metadata +1 -1
@@ -1,6 +1,6 @@
1
1
  require 'buncher/buncher'
2
2
  module Buncher
3
- VERSION = "1.0.15"
3
+ VERSION = "1.0.16"
4
4
  # your cluster needs to look like this. Make a bunch of them and pass them in. It's ok to pass in empty elements to start.
5
5
  class Cluster
6
6
  attr_accessor :elements
@@ -87,7 +87,7 @@ module Buncher
87
87
  solutions.select! {|min_fK| min_fK <= 0.85}
88
88
  min_fKs =solutions.keys.sort[0...plausable] || [1.0]
89
89
  if options[:plausable]
90
- if min_fKs.empty?
90
+ if !min_fKs.empty?
91
91
  solutions.select {|key| min_fKs.include?(key)}.sort
92
92
  else
93
93
  {1.0 => elements.map {|ele| Cluster.new(ele,[ele])}} # ie, not clustered at all
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buncher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: