- Timestamp:
- Sep 6, 2018 11:36:09 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 88ada06
- Parents:
- 04f775d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
r04f775d r04ce9ac 75 75 # TODO: (when the sasmodels implementation is concrete, clean this up) 76 76 choices = None 77 if type(param.choices) is listand len(param.choices) > 0:77 if isinstance(param.choices, (list, tuple)) and len(param.choices) > 0: 78 78 # The choices property is concrete in sasmodels, probably will use this 79 79 choices = param.choices 80 elif type(param.units) is list:81 choices = param.units80 elif isinstance(param.units, (list, tuple)): 81 choices = [str(x) for x in param.units] 82 82 83 83 cbox = None
Note: See TracChangeset
for help on using the changeset viewer.