Skip to content

Commit

Permalink
fix: do not show "sneddon_spher" model in expert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 7, 2022
1 parent bdd041c commit c8f599b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.13.1
- fix: do not show "sneddon_spher" model in expert mode
0.13.0
- feat: allow to specify the geometrical correction factor for
non-single-contact experiments (#16)
Expand Down
5 changes: 3 additions & 2 deletions pyjibe/fd/tab_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ def __init__(self, *args, **kwargs):
self.settings.value("advanced/developer mode", "0")))
exp_mode = bool(int(
self.settings.value("advanced/expert mode", "0")))
if not (dev_mode or exp_mode):
if not dev_mode:
models_av.remove("sneddon_spher")
if not (dev_mode or exp_mode):
self.widget_method.hide()
models_av.sort(key=lambda x: nmodel.models_available[x].model_name)
for ii, key in enumerate(models_av):
Expand Down Expand Up @@ -139,7 +140,7 @@ def assert_parameter_table_rows(self, table, rows, cb_first=False,
Returns
-------
rows_changed: bool
Whether or not the number of rows changed
Whether the number of rows changed
"""
rows_changed = (table.rowCount() - rows) != 0
table.setRowCount(rows)
Expand Down

0 comments on commit c8f599b

Please sign in to comment.