Changeset 0b1d7d3 in sasview
- Timestamp:
- Dec 1, 2016 2:08:50 PM (8 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- c9677c9
- Parents:
- 7602675
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r7602675 r0b1d7d3 1177 1177 formfactor_pos = int(state.formfactorcombobox) 1178 1178 except: 1179 if self.categorybox.GetValue() == 'Customized Models' \ 1180 and '[plug-in]' not in state.formfactorcombobox: 1181 state.formfactorcombobox = \ 1182 '[plug-in] ' + state.formfactorcombobox 1179 1183 formfactor_pos = 0 1180 1184 for ind_form in range(self.formfactorbox.GetCount()): … … 1581 1585 if param[1] == listtorestore[j][1]: 1582 1586 item_page = listtorestore[j] 1583 item_page_info = statelist[j]1587 item_page_info = param 1584 1588 if (item_page_info[1] == "theta" or item_page_info[1] == 1585 1589 "phi") and not self._is_2D(): -
src/sas/sasgui/perspectives/fitting/pagestate.py
r406644a r0b1d7d3 400 400 formfactor, params = \ 401 401 convert.convert_model(self.formfactorcombobox, params) 402 # if len(self.str_parameters) > 0: 403 # formfactor, str_params = \ 404 # convert.convert_model(formfactor, self.str_parameters) 402 405 403 406 # Only convert if old != new, otherwise all the same … … 421 424 else: 422 425 std = [False, ''] 423 if lower is not None :426 if lower is not None and lower is not numpy.nan: 424 427 lower = [True, str(lower)] 425 428 else: 426 lower = [ False, '']427 if upper is not None :429 lower = [True, '-inf'] 430 if upper is not None and upper is not numpy.nan: 428 431 upper = [True, str(upper)] 429 432 else: 430 upper = [ False, '']433 upper = [True, 'inf'] 431 434 param_list = [bool(fittable), str(name), str(info), 432 435 "+/-", std, lower, upper, str(units)]
Note: See TracChangeset
for help on using the changeset viewer.