From 0feb573147ab625a7584995fe90f16a8a0cab969 Mon Sep 17 00:00:00 2001 From: Evgeny Blokhin Date: Thu, 22 Mar 2018 17:01:13 +0100 Subject: [PATCH] v0.0.1 --- mpds_ml_labs/app.py | 2 +- mpds_ml_labs/prediction.py | 2 +- webassets/index.css | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mpds_ml_labs/app.py b/mpds_ml_labs/app.py index bd9aa27..f73ea14 100755 --- a/mpds_ml_labs/app.py +++ b/mpds_ml_labs/app.py @@ -13,7 +13,7 @@ app_labs = Blueprint('app_labs', __name__) static_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '../webassets')) -active_ml_models = None +active_ml_models = {} def fmt_msg(msg, http_code=400): return Response('{"error":"%s"}' % msg, content_type='application/json', status=http_code) diff --git a/mpds_ml_labs/prediction.py b/mpds_ml_labs/prediction.py index 9a7356f..5ae7871 100755 --- a/mpds_ml_labs/prediction.py +++ b/mpds_ml_labs/prediction.py @@ -63,7 +63,7 @@ 't': { 'name': 'linear thermal expansion coefficient', 'units': 'K-1', - 'symbol': 'ΘD(105)', + 'symbol': 'α(105)', 'rounding': 2, 'interval': [-0.001, 0.001] } diff --git a/webassets/index.css b/webassets/index.css index 0580fa1..c52ce52 100755 --- a/webassets/index.css +++ b/webassets/index.css @@ -22,14 +22,14 @@ h1{font-size:4vmin;line-height:4vmin;text-align:center;font-weight:bold;} #results{display:none;} #resultbox{float:left;width:70%;} -#resultbox ul li{font-size:2vmin;line-height:2.5vmin;margin-bottom:1.5vmin;} +#resultbox ul li{font-size:1.75vmin;line-height:3vmin;} #resultbox i{font-family:"Courier New",Courier;font-weight:bold;} #resultbox a{text-decoration:none;color:#900;border-bottom:1px solid #900;} #ctrlbox{float:right;width:160px;} #ctrlbox > div.button{width:100%;margin:3vmin auto;} -#playerbox{display:none;margin:2vmin auto 4vmin;} +#playerbox{display:none;margin:0 auto 4vmin;} #inputbox{padding-bottom:45px;} #inputbox textarea{width:100%;height:45vmin;padding:0.5vmin;font-size:1.5vmin;font-family:"Courier New",Courier;}