Changeset a321c52 in sasview for src/sas/sasgui/perspectives
- Timestamp:
- Dec 6, 2016 10:52:56 AM (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:
- 9eb8fae
- Parents:
- 77910cf
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r77910cf ra321c52 1160 1160 category_pos = int(state.categorycombobox) 1161 1161 except: 1162 if not state._is_sasmodels(): 1163 state._convert_to_sasmodels() 1162 state._convert_to_sasmodels() 1164 1163 state.categorycombobox = unicode(state.categorycombobox) 1165 1164 if state.categorycombobox in self.categorybox.Items: … … 1592 1591 item_page[0].SetValue(item_page_info[0]) 1593 1592 if item_page[2] is not None: 1594 # TODO: On loading save state, should try to coerce1595 # TODO: length and scale params to positive values1596 1593 item_page[2].SetValue(item_page_info[2]) 1597 1594 if item_page[2].__class__.__name__ == "ComboBox": … … 1609 1606 if item_page_info[4][0]: 1610 1607 item_page[4].Show(True) 1611 item_page[4].SetValue( item_page_info[4][1])1608 item_page[4].SetValue(str(item_page_info[4][1])) 1612 1609 else: 1613 1610 item_page[3].Hide() 1614 1611 if item_page[5] is not None: 1615 1612 # show of hide the text crtl for fitting error 1616 item_page[5].Show(item_page_info[5][0]) 1617 item_page[5].SetValue(item_page_info[5][1]) 1618 1613 item_page[5].Show(True) 1614 item_page[5].SetValue(str(item_page_info[5][1])) 1619 1615 if item_page[6] is not None: 1620 1616 # show of hide the text crtl for fitting error 1621 item_page[6].Show(item_page_info[6][0]) 1622 item_page[6].SetValue(item_page_info[6][1]) 1623 1617 item_page[6].Show(True) 1618 item_page[6].SetValue(str(item_page_info[6][1])) 1624 1619 break 1625 1620 -
src/sas/sasgui/perspectives/fitting/pagestate.py
r1c6bad0 ra321c52 357 357 return obj 358 358 359 def _ is_sasmodels(self):359 def _old_first_model(self): 360 360 """ 361 361 A check to see if the loaded save state was saved in SasView v4_0+ … … 391 391 elif self.categorycombobox == 'Structure Factor': 392 392 self.formfactorcombobox = 'hardsphere' 393 newname = convert._conversion_target(self.formfactorcombobox)394 if newname == None:395 return True396 else:397 return False398 393 399 394 def param_remap_to_sasmodels_convert(self, params): … … 466 461 """ 467 462 # Create conversion dictionary to send to sasmodels 463 self._old_first_model() 468 464 p = self.param_remap_to_sasmodels_convert(self.parameters) 469 465 structurefactor, params = \
Note: See TracChangeset
for help on using the changeset viewer.