summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2015-04-13 13:00:32 +0200
committergebele <gebele@in-silico.ch>2015-04-13 13:00:32 +0200
commit1bcf3e70deeac061db0450587668af442cbc6bc5 (patch)
tree2dbcd47f19ba031a04c55642df57388f48ca536e
parentcf0c31cc1aa895698cafde93878637243bf4d4e4 (diff)
minor fixes
-rw-r--r--views/neighbors.haml2
-rw-r--r--views/predict.haml2
-rw-r--r--views/prediction.haml2
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