diff options
author | gebele <gebele@in-silico.ch> | 2018-07-05 10:38:55 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2018-07-05 10:38:55 +0000 |
commit | 878f014ec6cc808af99af5045bcc1a1143cab8d9 (patch) | |
tree | 38458f73295d58c2ab487c81056d0abf0e4c4c19 /lib/model.rb | |
parent | 395506ca3fe4daa5689fd197e57f7ab944beb1d7 (diff) |
updated with endpoint list; refined error handling; refined prediction input
Diffstat (limited to 'lib/model.rb')
-rw-r--r-- | lib/model.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model.rb b/lib/model.rb index 9fbd90f..3764ee2 100644 --- a/lib/model.rb +++ b/lib/model.rb @@ -27,7 +27,7 @@ end post "/model/:id/?" do identifier = params[:identifier].split(",") - compounds = identifier.collect{ |i| Compound.from_smiles i.strip } + compounds = identifier.collect{ |i| Compound.from_smiles i.strip.gsub(/\A"|"\Z/,'') } model = Model::Validation.find params[:id] batch = {} compounds.each do |compound| |