Changeset 3f1af74 in sasview
- Timestamp:
- Jan 18, 2009 10:34:42 AM (16 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:
- 3dc83be
- Parents:
- cfc68540
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpanel.py
r47d10a2 r3f1af74 103 103 return panel,m_name 104 104 105 def _help_add_model_page(self,model,description,page_title): 105 def _help_add_model_page(self,model,description,page_title, qmin=0, qmax=0.1, npts=50): 106 """ 107 #TODO: fill in description 108 109 @param qmin: mimimum Q 110 @param qmax: maximum Q 111 @param npts: number of Q points 112 """ 106 113 from modelpage import ModelPage 107 114 panel = ModelPage(self.nb,model,page_title, -1) … … 115 122 116 123 117 def add_model_page(self,model,description,page_title): 124 # Set the range used to plot models 125 self.model_page.set_range(qmin, qmax, npts) 126 127 128 def add_model_page(self,model,description,page_title, qmin=0, qmax=0.1, npts=50): 118 129 """ 119 130 Add a model page only one to display any model selected from the menu or the page combo box. 120 131 when this page is closed than the user will be able to open a new one 132 121 133 @param model: the model for which paramters will be changed 122 134 @param page_title: the name of the page 123 """ 124 #print "page_title fitpanel", page_title 135 @param description: [Coder: fill your description!] 136 @param page_title: [Coder: fill your description!] 137 @param qmin: mimimum Q 138 @param qmax: maximum Q 139 @param npts: number of Q points 140 """ 125 141 if self.draw_model_name ==None: 126 127 self._help_add_model_page(model,description,page_title) 142 self._help_add_model_page(model,description,page_title, qmin=qmin, qmax=qmax, npts=npts) 128 143 else: 129 144 if self.draw_model_name !=page_title: 130 145 self.onClose(self.model_page, self.model_page_number) 131 self._help_add_model_page(model,description,page_title )146 self._help_add_model_page(model,description,page_title, qmin=qmin, qmax=qmax, npts=npts) 132 147 133 148
Note: See TracChangeset
for help on using the changeset viewer.