Skip to content

Commit c237020

Browse files
authored
fix: solve warnings from ipywidgets on gui.ParametersGui (#80)
1 parent a5da815 commit c237020

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

xcompact3d_toolbox/gui.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def __init__(self, **kwargs):
102102
],
103103
),
104104
"ilast": widgets.BoundedIntText(min=0, max=1e9),
105-
"inflow_noise": widgets.FloatText(min=-1e9, max=1e9),
106-
"init_noise": widgets.FloatText(min=-1e9, max=1e9),
105+
"inflow_noise": widgets.BoundedFloatText(min=-1e9, max=1e9),
106+
"init_noise": widgets.BoundedFloatText(min=-1e9, max=1e9),
107107
"istret": widgets.Dropdown(
108108
options=[
109109
("No refinement", 0),
@@ -138,7 +138,7 @@ def __init__(self, **kwargs):
138138
"numscalar": widgets.IntSlider(min=0, max=9, continuous_update=False),
139139
"p_col": widgets.Dropdown(options=self._possible_p_col),
140140
"p_row": widgets.Dropdown(options=self._possible_p_row),
141-
"re": widgets.FloatText(min=0.0, max=1e9),
141+
"re": widgets.BoundedFloatText(min=0.0, max=1e9),
142142
#
143143
# # NumOptions
144144
#
@@ -211,7 +211,7 @@ def __init__(self, **kwargs):
211211
}
212212

213213
for name in "gravx gravy gravz".split():
214-
self._widgets[name] = widgets.FloatText(min=-1.0, max=1.0)
214+
self._widgets[name] = widgets.BoundedFloatText(min=-1.0, max=1.0)
215215

216216
for name in "nx ny nz".split():
217217
self._widgets[name] = widgets.Dropdown()
@@ -247,7 +247,7 @@ def __init__(self, **kwargs):
247247
# get description to include together with widgets
248248
description = self.trait_metadata(name, "desc")
249249
if description is not None:
250-
self._widgets[name].description_tooltip = description
250+
self._widgets[name].tooltip = description
251251

252252
# Creating an arrange with all widgets
253253
dim = COORDS

0 commit comments

Comments
 (0)