Changeset eddb6ec in sasview for src/sans/perspectives
- Timestamp:
- Apr 2, 2014 5:25:09 AM (11 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:
- 6771d94
- Parents:
- 8817d07
- Location:
- src/sans/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/perspectives/fitting/basepage.py
rf468791 reddb6ec 496 496 self.model_list_box = page_info.model_list_box 497 497 ## Data member to store the dispersion object created 498 self.populate_box( dict=self.model_list_box)498 self.populate_box(model_dict=self.model_list_box) 499 499 500 500 def onContextMenu(self, event): … … 599 599 self.state.manager = manager 600 600 601 def populate_box(self, dict):601 def populate_box(self, model_dict): 602 602 """ 603 603 Store list of model 604 604 605 :param dict: dictionary containing list of models606 607 """ 608 self.model_list_box = dict605 :param model_dict: dictionary containing list of models 606 607 """ 608 self.model_list_box = model_dict 609 609 self.state.model_list_box = self.model_list_box 610 610 self.initialize_combox() … … 928 928 f_select = self.formfactorbox.GetSelection() 929 929 if f_select > 0: 930 931 930 self.state.formfactorcombobox = self.formfactorbox.\ 931 GetString(f_select) 932 932 if self.categorybox != None: 933 cb_select = self.categorybox.GetSelection() 934 if cb_select > 0: 935 self.state.categorycombobox = self.categorybox.\ 936 GetString(cb_select) 937 #save radiobutton state for model selection 938 #self.state.shape_rbutton = self.shape_rbutton.GetValue() 939 #self.state.shape_indep_rbutton = self.shape_indep_rbutton.GetValue() 940 #self.state.struct_rbutton = self.struct_rbutton.GetValue() 941 #self.state.plugin_rbutton = self.plugin_rbutton.GetValue() 933 cb_select = self.categorybox.GetSelection() 934 if cb_select > 0: 935 self.state.categorycombobox = self.categorybox.\ 936 GetString(cb_select) 942 937 943 938 self.state.enable2D = copy.deepcopy(self.enable2D) … … 1045 1040 if len(self.disp_cb_dict) > 0: 1046 1041 for k, v in self.disp_cb_dict.iteritems(): 1047 1048 1042 if v == None: 1049 1043 self.state.disp_cb_dict[k] = v … … 1053 1047 except: 1054 1048 self.state.disp_cb_dict[k] = None 1055 1056 1049 if len(self._disp_obj_dict) > 0: 1057 1050 for k, v in self._disp_obj_dict.iteritems(): -
src/sans/perspectives/fitting/fitpanel.py
r5777106 reddb6ec 384 384 panel._set_save_flag(not panel.batch_on) 385 385 panel.set_model_dictionary(self.model_dictionary) 386 panel.populate_box( dict=self.model_list_box)386 panel.populate_box(model_dict=self.model_list_box) 387 387 panel.formfactor_combo_init() 388 388 panel.set_manager(self._manager) -
src/sans/perspectives/fitting/pagestate.py
r44f7c1b reddb6ec 17 17 import logging 18 18 import numpy 19 import string 19 20 20 21 import xml.dom.minidom 21 from xml.dom.minidom import parse22 22 from lxml import etree 23 23 … … 193 193 ##page name 194 194 self.page_name = "" 195 # Contains link between model ,all its parameters, and panel organization195 # Contains link between model, all its parameters, and panel organization 196 196 self.parameters = [] 197 197 # String parameter list that can not be fitted … … 205 205 ## orientation parameters 206 206 self.orientation_params = [] 207 ## orientation par maters for gaussian dispersity207 ## orientation parameters for gaussian dispersity 208 208 self.orientation_params_disp = [] 209 209 ## smearer info … … 216 216 self.dxl = None 217 217 self.dxw = None 218 #list of dispersion param aters218 #list of dispersion parameters 219 219 self.disp_list = [] 220 220 if self.model is not None: … … 600 600 : param figs: list of pylab figures [list] 601 601 """ 602 from report_dialog import ReportDialog602 from sans.perspectives.fitting.report_dialog import ReportDialog 603 603 # get the strings for report 604 604 html_str, text_str, title = self.set_report_string() … … 630 630 dialog.ShowModal() 631 631 632 def _toXML_helper(self, list, element, newdoc):632 def _toXML_helper(self, thelist, element, newdoc): 633 633 """ 634 634 Helper method to create xml file for saving state 635 635 """ 636 for item in list:636 for item in thelist: 637 637 sub_element = newdoc.createElement('parameter') 638 638 sub_element.setAttribute('name', str(item[1]))
Note: See TracChangeset
for help on using the changeset viewer.