lib/sushi_fabric/sushiApp.rb in sushi_fabric-0.1.4 vs lib/sushi_fabric/sushiApp.rb in sushi_fabric-0.1.5
- old
+ new
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
# encoding: utf-8
-# Version = '20140313-152005'
+# Version = '20140313-161006'
require 'csv'
require 'fileutils'
require 'yaml'
require 'drb/drb'
@@ -168,10 +168,11 @@
attr_reader :description
attr_reader :name
attr_accessor :dataset_tsv_file
attr_accessor :parameterset_tsv_file
attr_accessor :dataset_sushi_id
+ attr_accessor :data_set
attr_accessor :project
attr_accessor :user
attr_accessor :next_dataset_name
attr_accessor :next_dataset_comment
def initialize
@@ -214,17 +215,19 @@
def set_default_parameters
# this should be overwritten in a subclass
end
def dataset_has_column?(colname)
flag = false
- @dataset_hash.map{|sample|
- sample.each do |key, value|
- if key =~ /#{colname}/
- flag = true
+ if @dataset_hash
+ @dataset_hash.map{|sample|
+ sample.each do |key, value|
+ if key =~ /#{colname}/
+ flag = true
+ end
end
- end
- break
- }
+ break
+ }
+ end
flag
end
def set_output_files
@dataset = {}