Changeset 2c44cf8 in sasview for fittingview/src/sans/perspectives
- Timestamp:
- Sep 27, 2012 4:49:55 PM (12 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b4c1815
- Parents:
- 0bf4840
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/pagestate.py
rea5fa58 r2c44cf8 850 850 # Recover _disp_obj_dict from xml file 851 851 self._disp_obj_dict = {} 852 disp_model = None 852 853 for item in list_of_obj_dic: 853 854 # Get node … … 861 862 # Try to recover disp_model object from strings 862 863 com = "from sans.models.dispersion_models " 863 com += "import %s as disp /ndisp_model = disp()"864 com += "import %s as disp" 864 865 com_name = disp_name.split(".")[3] 865 866 exec com % com_name 867 disp_model = disp() 866 868 exec "self.%s['%s'] = com_name" % (item[1], name) 867 869 except:
Note: See TracChangeset
for help on using the changeset viewer.