summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2015-10-29 12:54:15 +0000
committergebele <gebele@in-silico.ch>2015-10-29 12:54:15 +0000
commitdbb60a158ccb84f730089c5b0f61032c169dd92e (patch)
tree48e1375869fb560605a744aa2cae0386b1094bac
parent3935e9bee66fbfff4f35365eb9cff8c79f5fadd8 (diff)
revert last change after fix in compound lib
-rw-r--r--application.rb4
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