Changeset cb4ef58 in sasview for src/sas/sasgui/perspectives/fitting/fitpage.py
- Timestamp:
- Apr 13, 2016 9:23:07 AM (9 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:
- 16b769b
- Parents:
- fa4ea80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
rf27dd1e rcb4ef58 10 10 import math 11 11 import time 12 13 from sasmodels.weights import MODELS as POLYDISPERSITY_MODELS 14 12 15 from sas.sasgui.guiframe.events import StatusEvent 13 16 from sas.sasgui.guiframe.events import NewPlotEvent … … 621 624 model_disp = wx.StaticText(self, wx.ID_ANY, 'Function') 622 625 CHECK_STATE = self.cb1.GetValue() 623 #import sas.models.dispersion_models624 #self.polydisp = sas.models.dispersion_models.models625 import sasmodels.weights626 self.polydisp = sasmodels.weights.models627 626 628 627 ix = 0 … … 784 783 disp_box = wx.ComboBox(self, wx.ID_ANY, size=(65, -1), 785 784 style=wx.CB_READONLY, name='%s' % name1) 786 for key, value in self.polydisp.iteritems():785 for key, value in POLYDISPERSITY_MODELS.iteritems(): 787 786 name_disp = str(key) 788 787 disp_box.Append(name_disp, value) … … 948 947 disp_box = wx.ComboBox(self, wx.ID_ANY, size=(65, -1), 949 948 style=wx.CB_READONLY, name='%s' % name1) 950 for key, value in self.polydisp.iteritems():949 for key, value in POLYDISPERSITY_MODELS.iteritems(): 951 950 name_disp = str(key) 952 951 disp_box.Append(name_disp, value)
Note: See TracChangeset
for help on using the changeset viewer.