diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-08 08:57:31 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-08 08:57:31 +0100 |
commit | c37cc91893457cb91ddb2a32b9ac76090bd6c521 (patch) | |
tree | 529f6465f8f431c42e03140b2f6ccfe2ac5c149d /lib/model.rb | |
parent | 281a0bade2ca1d1bb040c54704650b69f6da24a5 (diff) |
not using rapper directly, use rest client and tmp-file
Diffstat (limited to 'lib/model.rb')
-rw-r--r-- | lib/model.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |