Changeset 8898558b in sasview for src/sas/sasgui/perspectives
- Timestamp:
- Nov 17, 2016 11:54:41 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:
- db5294e
- Parents:
- 377c19a2
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
rb4fc0f9 r8898558b 1157 1157 category_pos = int(state.categorycombobox) 1158 1158 except: 1159 if state.formfactorcombobox is not None: 1159 if state.formfactorcombobox is not None \ 1160 and not state._is_sasmodels(): 1160 1161 state._convert_to_sasmodels() 1161 1162 state.categorycombobox = unicode(state.categorycombobox) -
src/sas/sasgui/perspectives/fitting/pagestate.py
r377c19a2 r8898558b 25 25 from lxml import etree 26 26 27 from sasmodels import convert 27 28 import sasmodels.weights 28 29 … … 356 357 return obj 357 358 359 def _is_sasmodels(self): 360 """ 361 A check to see if the loaded save state was saved in SasView v4_0+ 362 :return: None 363 """ 364 newname = convert._conversion_target(self.formfactorcombobox) 365 if newname == None: 366 return True 367 else: 368 return False 369 358 370 def _convert_to_sasmodels(self): 359 371 """ … … 362 374 :return: None 363 375 """ 364 from sasmodels import convert365 import re366 376 # Create conversion dictionary to send to sasmodels 367 377 p = dict()
Note: See TracChangeset
for help on using the changeset viewer.