Changeset 74755ff in sasview for theoryview/perspectives/theory/model_panel.py
- Timestamp:
- Jun 2, 2010 10:17:18 AM (14 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:
- 6c79243
- Parents:
- a45622a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
theoryview/perspectives/theory/model_panel.py
r1a94c36 r74755ff 18 18 class ModelPanel(BasicPage): 19 19 """ 20 FitPanel class contains fields allowing to display results when 21 fitting a model and one data 22 @note: For Fit to be performed the user should check at least 20 FitPanel class contains fields allowing to display results when 21 fitting a model and one data 22 23 :note: For Fit to be performed the user should check at least 23 24 one parameter on fit Panel window. 24 25 """ … … 32 33 BasicPage.__init__(self, parent, page_info , model_list_box) 33 34 """ 34 35 Initialization of the Panel 35 36 """ 36 37 self._fill_model_sizer( self.sizer1) … … 48 49 def _on_display_description(self, event): 49 50 """ 50 Show or Hide description 51 @param event: wx.EVT_RADIOBUTTON 51 Show or Hide description 52 53 :param event: wx.EVT_RADIOBUTTON 54 52 55 """ 53 56 self._on_display_description_helper() … … 58 61 def _on_display_description_helper(self): 59 62 """ 60 Show or Hide description 61 @param event: wx.EVT_RADIOBUTTON 63 Show or Hide description 64 65 :param event: wx.EVT_RADIOBUTTON 66 62 67 """ 63 68 ## Show description … … 79 84 def _fill_range_sizer(self): 80 85 """ 81 Fill the sizer containing the plotting range 82 add access to npts 86 Fill the sizer containing the plotting range 87 add access to npts 88 83 89 """ 84 90 ##The following 3 lines are for Mac. Let JHC know before modifying.. … … 100 106 def _on_select_model(self, event): 101 107 """ 102 call back for model selection 108 call back for model selection 109 103 110 """ 104 111 self._on_select_model_helper() … … 110 117 def _fill_model_sizer(self, sizer): 111 118 """ 112 fill sizer containing model info 119 fill sizer containing model info 120 113 121 """ 114 122 ##The following 3 lines are for Mac. Let JHC know before modifying.. … … 129 137 def _set_sizer_dispersion(self, dispersity): 130 138 """ 131 draw sizer with gaussian, log or schulz dispersity parameters 139 draw sizer with gaussian, log or schulz dispersity parameters 140 132 141 """ 133 142 self.fittable_param=[] … … 308 317 def _onModel2D(self, event): 309 318 """ 310 call manager to plot model in 2D 319 call manager to plot model in 2D 320 311 321 """ 312 322 # If the 2D display is not currently enabled, plot the model in 2D … … 356 366 def reset_page(self, state): 357 367 """ 358 reset the state 368 reset the state 369 359 370 """ 360 371 self.reset_page_helper(state) … … 363 374 def select_model(self, model): 364 375 """ 365 Select a new model 366 @param model: model object 376 Select a new model 377 378 :param model: model object 379 367 380 """ 368 381 self.model = model … … 390 403 def set_model_description(self,description,sizer): 391 404 """ 392 fill a sizer with description 393 @param description: of type string 394 @param sizer: wx.BoxSizer() 405 fill a sizer with description 406 407 :param description: of type string 408 :param sizer: wx.BoxSizer() 409 395 410 """ 396 411 … … 442 457 def on_button_clicked(self,event): 443 458 """ 444 #On 'More details' button459 On 'More details' button 445 460 """ 446 461 from help_panel import HelpWindow … … 459 474 wx.PostEvent(self.parent, StatusEvent(status = msg )) 460 475 461 462 463 476 def set_range(self, qmin_x, qmax_x, npts): 464 477 """ 465 Set the range for the plotted models 466 @param qmin: minimum Q 467 @param qmax: maximum Q 468 @param npts: number of Q bins 478 Set the range for the plotted models 479 480 :param qmin: minimum Q 481 :param qmax: maximum Q 482 :param npts: number of Q bins 483 469 484 """ 470 485 # Set the data members … … 472 487 self.qmax_x = qmax_x 473 488 self.num_points = npts 474 475 489 # Set the controls 476 490 #For qmin and qmax, do not use format_number.(If do, qmin and max could be different from what is in the data.) 477 478 491 self.qmin.SetValue(str(self.qmin_x)) 479 492 self.qmax.SetValue(str(self.qmax_x)) 480 493 self.npts.SetValue(format_number(self.num_points)) 481 494 482 483 495 def set_model_param_sizer(self, model): 484 496 """ 485 Build the panel from the model content 486 @param model: the model selected in combo box for fitting purpose 497 Build the panel from the model content 498 499 :param model: the model selected in combo box for fitting purpose 500 487 501 """ 488 502 self.sizer3.Clear(True)
Note: See TracChangeset
for help on using the changeset viewer.