biopsy 0.1.3.alpha → 0.1.4.alpha

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: 1ec90ab633f2918da2c0c171f817677c2173368c
4
- data.tar.gz: 8e6c7456dc5bf2fa8cbb5a878471192f99a8a0fc
3
+ metadata.gz: f61f6fe9239f55197ade6e001966297f5b2f02dc
4
+ data.tar.gz: cc88d6b21123b2f70f4d557d391c7641a619c997
5
5
  SHA512:
6
- metadata.gz: 050d69fe396e21252bc2f688e102a20b49bce48b95bb70f642a7a7c10e59e243c6d7c0768154a5825b57bc6195ce47f597cf10a63cc5c7f28a802523fed15e50
7
- data.tar.gz: bee88a6a7132af7954566bd43371e83172f182fea0270e7c91a8ad69eff9aa8ab631c92fd39a96f122ef26e56026db3992ed575ed3dbaad3a10ce89f25d28f52
6
+ metadata.gz: 95e9fd0f17b945202db2eade0633c386d63c1a7a67c0303431d5b037a6bbff27e78c20b1639004b927628bc3400642d90bddc2f42db627f629416c4c8145ba14
7
+ data.tar.gz: a934aae71cbe3f500f6bf69da3913653daec9fd69b911609953c28eee66eab4f553c39f671101127cfbb9eb4f04d44145d6031e72c2ade761ef1cc6d91439b07
@@ -19,11 +19,14 @@ module Biopsy
19
19
  attr_reader :inputs, :outputs, :retain_intermediates, :target, :start, :algorithm
20
20
 
21
21
  # Returns a new Experiment
22
- def initialize(target_name, start=nil, algorithm=nil)
22
+ def initialize(target, start=nil, algorithm=nil)
23
23
  @start = start
24
24
  @algorithm = algorithm
25
-
26
- self.load_target target_name
25
+ if target.is_a? Target
26
+ @target = target
27
+ else
28
+ self.load_target target_name
29
+ end
27
30
  @objective = ObjectiveHandler.new @target
28
31
  self.select_algorithm
29
32
  self.select_starting_point
@@ -4,7 +4,7 @@ module Biopsy
4
4
  module VERSION
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
- PATCH = 3
7
+ PATCH = 4
8
8
  BUILD = 'alpha'
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biopsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.alpha
4
+ version: 0.1.4.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Smith