diff options
author | gebele <gebele@in-silico.ch> | 2015-10-29 12:55:57 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2015-10-29 12:55:57 +0000 |
commit | 95236e48e8a1da009e6b5ab1789f0de37dde36f5 (patch) | |
tree | c62d0856004f1ddcc582b98f3797348fce4d968f | |
parent | b452a81e9c0a470bf9aa51f0192378f5fba5177a (diff) |
patch merge
-rw-r--r-- | application.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/application.rb b/application.rb index d77842d..229f3a1 100644 --- a/application.rb +++ b/application.rb @@ -259,9 +259,7 @@ post '/predict/?' do # validate identifier input # transfered input if !params[:identifier].blank? - # remove whitespaces they terminate a SMILES string - # can result in wrong conversion for compound object - @identifier = params[:identifier].gsub(/\s+/, "") + @identifier = params[:identifier] $logger.debug "input:#{@identifier}" # get compound from SMILES @compound = Compound.from_smiles @identifier |