From 1bcf3e70deeac061db0450587668af442cbc6bc5 Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 13 Apr 2015 13:00:32 +0200 Subject: minor fixes --- views/neighbors.haml | 2 +- views/predict.haml | 2 +- views/prediction.haml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/views/neighbors.haml b/views/neighbors.haml index 86d1906..45a3642 100644 --- a/views/neighbors.haml +++ b/views/neighbors.haml @@ -94,7 +94,7 @@ - c = c - else /- c = Array.new - - c = p.data_entries[count][2].round(3) + - c = p.data_entries[count][2].to_f.round(3) %tr %td.compound %a{:href => to("/prediction/#{CGI.escape(neighbor_compound.uri)}/details"), :id=>"link#{count_rs}#{count}", :target=>"details"} diff --git a/views/predict.haml b/views/predict.haml index 5537bf8..1adc9da 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -32,7 +32,7 @@ else { var next = progressBarWidth(percent,fullWidth); } - $element.find('#bar').animate({ width:next }, 30000); + $element.find('#bar').animate({ width:next }, 3000); }, 3000); }; function checksmiles () { diff --git a/views/prediction.haml b/views/prediction.haml index 5dda31e..764adb1 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -95,7 +95,7 @@ %a{:href=>"http://www.frontiersin.org/Journal/10.3389/fphar.2013.00038/abstract", :target=>"_blank"} original publication ) Please keep in mind that predictions are based on the measured activities of neighbors. - - @cv = OpenTox::Validation.find @prediction_models[count].metadata[RDF::OT.crossValidation][0]+"/statistics" unless @prediction_models[count].title.include?("Mutagenicity") + - @cv = OpenTox::Validation.find @prediction_models[count].metadata[RDF::OT.crossValidation][0]+"/statistics" #unless @prediction_models[count].title.include?("Mutagenicity") - unless @model_type[count] == "regression" %br %b -- cgit v1.2.3