From c37cc91893457cb91ddb2a32b9ac76090bd6c521 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 8 Feb 2011 08:57:31 +0100 Subject: not using rapper directly, use rest client and tmp-file --- lib/model.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/model.rb') diff --git a/lib/model.rb b/lib/model.rb index ae793e8..64d178f 100644 --- a/lib/model.rb +++ b/lib/model.rb @@ -31,7 +31,7 @@ module OpenTox return nil unless uri model = Generic.new(uri) model.load_metadata(subjectid) - raise "could not load model metadata" if model.metadata==nil or model.metadata.size==0 + raise "could not load model metadata '"+uri.to_s+"'" if model.metadata==nil or model.metadata.size==0 model end @@ -134,7 +134,7 @@ module OpenTox OT.parameters => [{DC.title => "dataset_uri", OT.paramValue => dataset_uri}] }) d = Dataset.new(dataset_uri,subjectid) - d.load_compounds + d.load_compounds(subjectid) count = 0 d.compounds.each do |compound_uri| begin -- cgit v1.2.3