Changeset 38226d26 in sasview for fittingview/src/sans/perspectives
- Timestamp:
- May 29, 2012 7:03:27 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:
- 8182fbb
- Parents:
- a1fa589
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/pagestate.py
r724897ad r38226d26 696 696 # For self.values ={ disp_param_name: [vals,...],...} 697 697 # and for self.weights ={ disp_param_name: [weights,...],...} 698 list = {} 698 699 for item in list_of_model_attributes: 699 700 element = newdoc.createElement(item[0]) … … 856 857 # Try to recover disp_model object from strings 857 858 com = "from sans.models.dispersion_models " 858 com += "import %s as disp "859 com += "import %s as disp /ndisp_model = disp()" 859 860 com_name = disp_name.split(".")[3] 860 861 exec com % com_name 861 disp_model = disp()862 862 exec "self.%s['%s'] = com_name" % (item[1], name) 863 863 except: … … 1009 1009 root_node = doc.createElement(item[0]) 1010 1010 new_node.appendChild(root_node) 1011 1011 temp_list = None 1012 1012 exec "temp_list = datainfo.%s" % item[1] 1013 1013
Note: See TracChangeset
for help on using the changeset viewer.