Skip to content

Commit

Permalink
Update equation lists for combobox code, no change in functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
zunzun committed Nov 23, 2016
1 parent f4c0f15 commit 727a25a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 9 additions & 3 deletions DataForControls.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@
]

# these require additional user input - available in zunzunsite3 but not this project
excludedModuleNames = [
excludedModuleNames_2D = [
'Polyfunctional',
'Rational',
'Spline',
'UserDefinedFunction',
]
excludedModuleNames_3D = [
'Polyfunctional',
'Spline',
'UserDefinedFunction',
Expand All @@ -55,7 +61,7 @@
eq_od2D = collections.OrderedDict()
for submodule in inspect.getmembers(pyeq3.Models_2D):
if inspect.ismodule(submodule[1]):
if submodule[0] in excludedModuleNames:
if submodule[0] in excludedModuleNames_2D:
continue
eq_od2D[submodule[0]] = collections.OrderedDict()
for equationClass in inspect.getmembers(submodule[1]):
Expand All @@ -80,7 +86,7 @@
eq_od3D = collections.OrderedDict()
for submodule in inspect.getmembers(pyeq3.Models_3D):
if inspect.ismodule(submodule[1]):
if submodule[0] in excludedModuleNames:
if submodule[0] in excludedModuleNames_3D:
continue
eq_od3D[submodule[0]] = collections.OrderedDict()
for equationClass in inspect.getmembers(submodule[1]):
Expand Down
1 change: 0 additions & 1 deletion FittingInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def __init__(self, parent):
f.grid(column=col, row=row)
self.cb_Modules2D = tk.ttk.Combobox(f, state='readonly')
moduleNameList = list(dfc.eq_od2D.keys())
moduleNameList.remove('Rational') # has no 2D equations used here
self.cb_Modules2D['values'] = moduleNameList
self.cb_Modules2D.bind("<<ComboboxSelected>>", self.moduleSelectChanged_2D)
self.cb_Modules2D.set('Polynomial')
Expand Down

0 comments on commit 727a25a

Please sign in to comment.