summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vorgrimmler <vorgrimmlerdavid@gmx.de>2012-06-29 14:26:17 +0200
committerDavid Vorgrimmler <vorgrimmlerdavid@gmx.de>2012-06-29 14:26:17 +0200
commit0648d0fed033f0e5a593107da1ca257a6fd8b99e (patch)
tree02c637ae560ea072be9d4367d93dc981588c4759
parent7bae77937f9ca01f3cdedc74fcdfd813b85c915d (diff)
Fixed container format for CSV
-rw-r--r--lib/serializer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/serializer.rb b/lib/serializer.rb
index 3a7ce1d..03ca285 100644
--- a/lib/serializer.rb
+++ b/lib/serializer.rb
@@ -505,7 +505,7 @@ module OpenTox
}
# serialize to csv
- @rows += dataset.compounds.collect do |compound|
+ dataset.compounds.each do |compound|
entries=dataset.data_entries[compound]
if entries
inchi = URI.encode_www_form_component(Compound.new(compound).to_inchi)
@@ -530,7 +530,7 @@ module OpenTox
row.collect! { |x| x ? x : 0 }
}
end
- row_container
+ row_container.each { |row| @rows << row }
end
end