From 6d6be53a110e71d0d56ae5ea9a2675f76f7c84ec Mon Sep 17 00:00:00 2001 From: "helma@in-silico.ch" Date: Thu, 6 Sep 2018 17:24:25 +0200 Subject: adjusted classification similarities, dataset sdf export --- lib/opentox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/opentox.rb') diff --git a/lib/opentox.rb b/lib/opentox.rb index 5c300cf..03d65b0 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -15,7 +15,7 @@ module OpenTox field :warnings, type: Array, default: [] def warn warning - $logger.warn warning + #$logger.warn warning warnings << warning end end -- cgit v1.2.3 From 1652fd5df948da7ace622c73d158010add656b9f Mon Sep 17 00:00:00 2001 From: "helma@in-silico.ch" Date: Wed, 24 Oct 2018 18:21:34 +0200 Subject: dataset map --- lib/opentox.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/opentox.rb') diff --git a/lib/opentox.rb b/lib/opentox.rb index 03d65b0..9cc8260 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -11,13 +11,13 @@ module OpenTox include Mongoid::Timestamps store_in collection: klass.downcase.pluralize field :name, type: String - field :source, type: String - field :warnings, type: Array, default: [] + #field :source, type: String + #field :warnings, type: Array, default: [] - def warn warning +# def warn warning #$logger.warn warning - warnings << warning - end +# warnings << warning +# end end OpenTox.const_set klass,c end -- cgit v1.2.3 From d61f78093f4ddf03c27a2c8ae0bab9c1f10c80f5 Mon Sep 17 00:00:00 2001 From: "helma@in-silico.ch" Date: Tue, 30 Oct 2018 17:26:59 +0100 Subject: tests fixed --- lib/opentox.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/opentox.rb') diff --git a/lib/opentox.rb b/lib/opentox.rb index 9cc8260..fb2a579 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -11,13 +11,6 @@ module OpenTox include Mongoid::Timestamps store_in collection: klass.downcase.pluralize field :name, type: String - #field :source, type: String - #field :warnings, type: Array, default: [] - -# def warn warning - #$logger.warn warning -# warnings << warning -# end end OpenTox.const_set klass,c end -- cgit v1.2.3