diff options
author | gebele <gebele@in-silico.ch> | 2017-11-09 14:28:30 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2017-11-09 14:28:30 +0000 |
commit | 31f1217be7162aac06aa262376f432f676928749 (patch) | |
tree | ede31e5909994f4e7adbe54b68b9119150479409 /prediction.rb | |
parent | 745103c970b9883808ce95399a8d0a32e5c57342 (diff) |
cleanup and reorder code;save prediction object also for single prediction
Diffstat (limited to 'prediction.rb')
-rw-r--r-- | prediction.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/prediction.rb b/prediction.rb index 4e46d52..afceb08 100644 --- a/prediction.rb +++ b/prediction.rb @@ -9,8 +9,9 @@ module OpenTox field :compound, type: BSON::ObjectId field :model, type: BSON::ObjectId field :prediction, type: Hash, default:{} + field :csv, type: String - attr_accessor :compound, :model, :prediction + attr_accessor :compound, :model, :prediction, :csv def compound self[:compound] @@ -24,6 +25,10 @@ module OpenTox self[:prediction] end + def csv + self[:csv] + end + end end |