Skip to content

Commit

Permalink
fix: solve warnings from ipywidgets on gui.ParametersGui (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
fschuch authored Jan 30, 2025
1 parent a5da815 commit c237020
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xcompact3d_toolbox/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def __init__(self, **kwargs):
],
),
"ilast": widgets.BoundedIntText(min=0, max=1e9),
"inflow_noise": widgets.FloatText(min=-1e9, max=1e9),
"init_noise": widgets.FloatText(min=-1e9, max=1e9),
"inflow_noise": widgets.BoundedFloatText(min=-1e9, max=1e9),
"init_noise": widgets.BoundedFloatText(min=-1e9, max=1e9),
"istret": widgets.Dropdown(
options=[
("No refinement", 0),
Expand Down Expand Up @@ -138,7 +138,7 @@ def __init__(self, **kwargs):
"numscalar": widgets.IntSlider(min=0, max=9, continuous_update=False),
"p_col": widgets.Dropdown(options=self._possible_p_col),
"p_row": widgets.Dropdown(options=self._possible_p_row),
"re": widgets.FloatText(min=0.0, max=1e9),
"re": widgets.BoundedFloatText(min=0.0, max=1e9),
#
# # NumOptions
#
Expand Down Expand Up @@ -211,7 +211,7 @@ def __init__(self, **kwargs):
}

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

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

# Creating an arrange with all widgets
dim = COORDS
Expand Down

0 comments on commit c237020

Please sign in to comment.