Changeset b0b09b9 in sasview for src/sas/qtgui/Perspectives/Fitting/FittingOptions.py
- Timestamp:
- Oct 26, 2017 3:13:05 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 895e7359
- Parents:
- def64a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingOptions.py
r377ade1 rb0b09b9 80 80 Use options.FIT_FIELDS to assert which line edit gets what validator 81 81 """ 82 for option in bumps.options.FIT_FIELDS. iterkeys():82 for option in bumps.options.FIT_FIELDS.keys(): 83 83 (f_name, f_type) = bumps.options.FIT_FIELDS[option] 84 84 validator = None … … 86 86 validator = QtGui.QIntValidator() 87 87 validator.setBottom(0) 88 elif f_type == types.FloatType:88 elif f_type == float: 89 89 validator = QtGui.QDoubleValidator() 90 90 validator.setBottom(0) … … 153 153 154 154 # Update the BUMPS singleton 155 [bumpsUpdate(o) for o in self.config.values[self.current_fitter_id]. iterkeys()]155 [bumpsUpdate(o) for o in self.config.values[self.current_fitter_id].keys()] 156 156 157 157 def onHelp(self): … … 175 175 if current_fitter is None: 176 176 current_fitter = self.current_fitter_id 177 if option_id not in bumps.options.FIT_FIELDS.keys(): return None177 if option_id not in list(bumps.options.FIT_FIELDS.keys()): return None 178 178 option = option_id + '_' + current_fitter 179 179 if not hasattr(self, option): return None … … 193 193 """ 194 194 options = self.config.values[fitter_id] 195 for option in options. iterkeys():195 for option in options.keys(): 196 196 # Find the widget name of the option 197 197 # e.g. 'samples' for 'dream' is 'self.samples_dream'
Note: See TracChangeset
for help on using the changeset viewer.