diff options
author | Christoph Helma <helma@in-silico.ch> | 2013-07-02 19:23:01 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2013-07-02 19:23:01 +0200 |
commit | 6c35e3f8369ba96cb251eac487424bd949fdcf6c (patch) | |
tree | efb13808cfd022793800460a729bf0b583284d21 /lib/dataset.rb | |
parent | 308ed58dc56815317f89654a0cc4ab7fb70a9f31 (diff) |
Algorithms and Models are modules instead of classes.
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r-- | lib/dataset.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb index 5df20b4..354b443 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -64,6 +64,8 @@ module OpenTox RestClientWrapper.get(service_uri,{:query => sparql},{:accept => "text/uri-list", :subjectid => @subjectid}).split("\n").each do |row| r,c,v = row.split("\t") @data_entries[r.to_i] ||= [] + #v = v.to_f if v.numeric? + #v = nil if v.is_a? String and v.empty? @data_entries[r.to_i][c.to_i] = v end # TODO: fallbacks for external and unordered datasets @@ -169,6 +171,7 @@ module OpenTox # TODO: remove? might be dangerous if feature ordering is incorrect # MG: I would not remove this because add_data_entry is very slow (4 times searching in arrays) + # CH: do you have measurements? compound and feature arrays are not that big, I suspect that feature search/creation is the time critical step # @param row [Array] # @example # d = Dataset.new |