From 44d9ceb30f6f8649f2d6fc179a925302f14d8a05 Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 16 Jul 2018 14:20:03 +0000 Subject: add mazzatorta --- views/prediction.haml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'views/prediction.haml') diff --git a/views/prediction.haml b/views/prediction.haml index b4b51ca..152efc9 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -23,6 +23,8 @@ - @model_types = {} - @dbhit = {} - toxtree = @predictions.pop if @toxtree == true + - mazzatorta = @predictions.find{|p| p["mazzatorta"]} + - @predictions.delete(mazzatorta) if mazzatorta - unless @predictions.blank? - @predictions.each_with_index do |prediction,i| - if prediction["Consensus prediction"] @@ -138,7 +140,7 @@ %br =prediction[:warnings].join("
") - / show Cramer rules if checked + / Cramer - if @toxtree == true %td{:style=>"vertical-align:top;white-space:nowrap;"} %b.title Oral toxicity (Cramer rules) @@ -151,6 +153,24 @@ %br =toxtree.last["Cramer rules, with extensions"] + / Mazzatorta + - if mazzatorta + %td{:style=>"vertical-align:top;white-space:nowrap;"} + %b.title Lowest observed adverse effect level (LOAEL) (Rats) (Mazzatorta) + %p + - hash = mazzatorta["mazzatorta"] + - unless hash.keys.include?("warnings") + %b Prediction: + %br + = "#{hash[:mmol_prediction]} (mmol/kg_bw/day)" + %br + = "#{hash[:prediction]} (mg/kg_bw/day)" + - else + %b Warnings: + %br + = "#{hash[:warnings]}" + + / always show the neighbors table, message is given there. Except only Cramer is selected. - unless @predictions.blank? = haml :neighbors, :layout => false -- cgit v1.2.3