From 9a6c7ec3a1810dcd1b33c2f379dbb0ac86807f86 Mon Sep 17 00:00:00 2001 From: Germain Personne Date: Mon, 23 May 2022 14:52:32 +0200 Subject: [PATCH] Changed the relative humidity to be a percentage in a range of 20-80% --- cara/apps/expert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cara/apps/expert.py b/cara/apps/expert.py index c8b6fcb3..f0058383 100644 --- a/cara/apps/expert.py +++ b/cara/apps/expert.py @@ -410,7 +410,7 @@ class ModelWidgets(View): room_w.observe(lambda event: toggle_room(event['new']), 'value') toggle_room(room_w.value) - humidity = widgets.FloatSlider(value = node.humidity, min=0, max=1, step=0.01) + humidity = widgets.FloatSlider(value = node.humidity, min=20, max=80, step=5) inside_temp = widgets.IntSlider(value=node.inside_temp.values[0]-273.15, min=15., max=25.) def on_humidity_change(change): @@ -430,7 +430,7 @@ class ModelWidgets(View): room_w, widgets.VBox(list(room_widgets.values())), widgets.HBox([widgets.Label('Inside temperature (℃)'), inside_temp], layout=widgets.Layout(width='100%', justify_content='space-between')), - widgets.HBox([widgets.Label('Indoor relative humidity'), humidity], + widgets.HBox([widgets.Label('Indoor relative humidity (%)'), humidity], layout=widgets.Layout(width='100%', justify_content='space-between')), ])] , title="Specification of workspace"