Changeset e82a901 in sasview
- Timestamp:
- Jun 10, 2015 2:17:59 AM (10 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:
- 56e99f9
- Parents:
- 7801df8 (diff), f202138 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 1 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
.pydevproject
r79492222 re82a901 4 4 <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property> 5 5 <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH"> 6 <path>/sasview -git/src</path>6 <path>/sasview/src</path> 7 7 </pydev_pathproperty> 8 8 </pydev_project> -
src/sas/perspectives/fitting/media/fitting.rst
re3b9001 rb404a3de 8 8 9 9 Fitting Data <fitting_help> 10 11 Assessing Fit Quality <residuals_help> 10 12 11 13 Polydispersity Distributions <pd_help> -
src/sas/perspectives/fitting/media/fitting_help.rst
r5ac0a7a rff42a26 351 351 window, and a second graph window will appear displaying the residuals (the 352 352 difference between the experimental data and the theory) at the same X-data values. 353 See :ref:`Assessing_Fit_Quality`. 353 354 354 355 The objective of model-fitting is to find a *physically-plausible* model, and set … … 373 374 fit of the theory to the experimental data improves the value of 'chi2/Npts' will 374 375 decrease. A good model fit should easily produce values of 'chi2/Npts' that are 375 close to zero, and certainly <100. 376 close to zero, and certainly <100. See :ref:`Assessing_Fit_Quality`. 376 377 377 378 SasView has a number of different optimisers (see the section :ref:`Fitting_Options`). … … 397 398 *Send To Fitting*. Either way, the result should be that for *n* data sets you have 398 399 2\ *n* graphs (*n* of the data and model fit, and *n* of the resulting residuals). But 399 it may be helpful to minimise the residuals plots for clarity. 400 it may be helpful to minimise the residuals plots for clarity. Also see 401 :ref:`Assessing_Fit_Quality`. 400 402 401 403 *NB: If you need to use a customized model, you must ensure that model is available* … … 439 441 Note that the chi2/Npts value returned is the SUM of the chi2/Npts of each fit. To 440 442 see the chi2/Npts value for a specific *FitPage*, click the *Compute* button at the 441 bottom of that *FitPage* to recalculate. 443 bottom of that *FitPage* to recalculate. Also see :ref:`Assessing_Fit_Quality`. 442 444 443 445 Simultaneous Fits with Constraints … … 465 467 Note that the chi2/Npts value returned is the SUM of the chi2/Npts of each fit. To 466 468 see the chi2/Npts value for a specific *FitPage*, click the *Compute* button at the 467 bottom of that *FitPage* to recalculate. 469 bottom of that *FitPage* to recalculate. Also see :ref:`Assessing_Fit_Quality`. 468 470 469 471 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ … … 525 527 If you select a 'Chi2' value and click the *View Fits* button a graph of the 526 528 residuals for that data set is displayed. Again, if you select multiple 'Chi2' 527 values then all the residuals data will appear on one graph. 529 values then all the residuals data will appear on one graph. Also see 530 :ref:`Assessing_Fit_Quality`. 528 531 529 532 Chain Fitting -
src/sas/guiframe/gui_manager.py
r5276eeb r7801df8 2166 2166 # different place than they would otherwise. 2167 2167 from documentation_window import DocumentationWindow 2168 DocumentationWindow(self, -1, "index.html", " General Help")2168 DocumentationWindow(self, -1, "index.html", "", "SasView Documentation") 2169 2169 2170 2170 def set_manager(self, manager): -
src/sas/perspectives/calculator/data_operator.py
ra27e8b8 r3db44fb 635 635 636 636 _TreeLocation = "user/perspectives/calculator/data_operator_help.html" 637 _doc_viewer = DocumentationWindow(self, -1, \638 _TreeLocation,"Data Operation Help")637 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 638 "Data Operation Help") 639 639 640 640 def disconnect_panels(self): -
src/sas/perspectives/calculator/density_panel.py
rd5419f7f r3db44fb 385 385 386 386 _TreeLocation = "user/perspectives/calculator/density_calculator_help.html" 387 _doc_viewer = DocumentationWindow(self, -1, \388 _TreeLocation,"Density/Volume Calculator Help")387 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 388 "Density/Volume Calculator Help") 389 389 390 390 def on_close(self, event): -
src/sas/perspectives/calculator/gen_scatter_panel.py
rd5419f7f r3db44fb 914 914 915 915 _TreeLocation = "user/perspectives/calculator/sas_calculator_help.html" 916 _doc_viewer = DocumentationWindow(self, -1, \917 _TreeLocation,"General Scattering Calculator Help")916 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 917 "General Scattering Calculator Help") 918 918 919 919 def _check_value(self): -
src/sas/perspectives/calculator/image_viewer.py
r49ab5d7 r3db44fb 150 150 151 151 _TreeLocation = "user/perspectives/calculator/image_viewer_help.html" 152 _doc_viewer = DocumentationWindow(self, -1, \153 _TreeLocation,"Image Viewer Help")152 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 153 "Image Viewer Help") 154 154 155 155 -
src/sas/perspectives/calculator/kiessig_calculator_panel.py
rd5419f7f r3db44fb 173 173 """ 174 174 _TreeLocation = "user/perspectives/calculator/kiessig_calculator_help.html" 175 _doc_viewer = DocumentationWindow(self, -1, 176 _TreeLocation, 175 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 177 176 "Density/Volume Calculator Help") 178 177 -
src/sas/perspectives/calculator/model_editor.py
rac7be54 r7801df8 29 29 import re 30 30 from wx.py.editwindow import EditWindow 31 from sas.guiframe.documentation_window import DocumentationWindow 32 31 33 32 34 if sys.platform.count("win32") > 0: … … 271 273 # Eventually need to add help here 272 274 self.ok_button = wx.Button(self, wx.ID_OK, 'Apply') 275 _app_tip = "Save the new Model." 276 self.ok_button.SetToolTipString(_app_tip) 273 277 self.ok_button.Bind(wx.EVT_BUTTON, self.check_name) 278 self.help_button = wx.Button(self, -1, 'HELP') 279 _app_tip = "Help on composite model creation." 280 self.help_button.SetToolTipString(_app_tip) 281 self.help_button.Bind(wx.EVT_BUTTON, self.on_help) 274 282 self.close_button = wx.Button(self, wx.ID_CANCEL, 'Close') 275 283 sizer_button = wx.BoxSizer(wx.HORIZONTAL) 276 284 sizer_button.AddMany([((20, 20), 1, 0), 277 285 (self.ok_button, 0, 0), 286 (self.help_button, 0, 0), 278 287 (self.close_button, 0, wx.LEFT | wx.RIGHT, 10)]) 279 288 mainsizer.Add(sizer_button, 0, wx.EXPAND | wx.BOTTOM | wx.TOP, 10) … … 392 401 else: 393 402 raise 403 404 def on_help(self, event): 405 """ 406 Bring up the Composite Model Editor Documentation whenever 407 the HELP button is clicked. 408 409 Calls DocumentationWindow with the path of the location within the 410 documentation tree (after /doc/ ....". Note that when using old 411 versions of Wx (before 2.9) and thus not the release version of 412 installers, the help comes up at the top level of the file as 413 webbrowser does not pass anything past the # to the browser when it is 414 running "file:///...." 415 416 :param evt: Triggers on clicking the help button 417 """ 418 419 _TreeLocation = "user/perspectives/fitting/fitting_help.html" 420 _PageAnchor = "#sum-multi-p1-p2" 421 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, _PageAnchor, 422 "Composite Model Editor Help") 394 423 395 424 def _set_model_list(self): … … 756 785 self.bt_apply.Bind(wx.EVT_BUTTON, self.on_click_apply) 757 786 787 self.bt_help = wx.Button(self, -1, "HELP", size=(_BOX_WIDTH, -1)) 788 self.bt_help.SetToolTipString("Get Help For Model Editor") 789 self.bt_help.Bind(wx.EVT_BUTTON, self.on_help) 790 758 791 self.bt_close = wx.Button(self, -1, 'Close', size=(_BOX_WIDTH, -1)) 759 792 self.bt_close.Bind(wx.EVT_BUTTON, self.on_close) … … 762 795 self.button_sizer.AddMany([(self.bt_apply, 0, 763 796 wx.LEFT, EDITOR_WIDTH * 0.8), 797 (self.bt_help, 0, 798 wx.LEFT,15), 764 799 (self.bt_close, 0, 765 800 wx.LEFT | wx.BOTTOM, 15)]) … … 1089 1124 """ 1090 1125 return self.warning 1126 1127 def on_help(self, event): 1128 """ 1129 Bring up the Custom Model Editor Documentation whenever 1130 the HELP button is clicked. 1131 1132 Calls DocumentationWindow with the path of the location within the 1133 documentation tree (after /doc/ ....". Note that when using old 1134 versions of Wx (before 2.9) and thus not the release version of 1135 installers, the help comes up at the top level of the file as 1136 webbrowser does not pass anything past the # to the browser when it is 1137 running "file:///...." 1138 1139 :param evt: Triggers on clicking the help button 1140 """ 1141 1142 _TreeLocation = "user/perspectives/fitting/fitting_help.html" 1143 _PageAnchor = "#custom-model-editor" 1144 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, _PageAnchor, 1145 "Custom Model Editor Help") 1091 1146 1092 1147 def on_close(self, event): -
src/sas/perspectives/calculator/resolution_calculator_panel.py
rd5419f7f r3db44fb 642 642 643 643 _TreeLocation = "user/perspectives/calculator/resolution_calculator_help.html" 644 _doc_viewer = DocumentationWindow(self, -1, 645 _TreeLocation,"Resolution Calculator Help")644 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 645 "Resolution Calculator Help") 646 646 647 647 def on_close(self, event): -
src/sas/perspectives/calculator/sld_panel.py
rd5419f7f r3db44fb 326 326 327 327 _TreeLocation = "user/perspectives/calculator/sld_calculator_help.html" 328 _doc_viewer = DocumentationWindow(self, -1, \329 _TreeLocation,"General Scattering Calculator Help")328 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 329 "General Scattering Calculator Help") 330 330 331 331 def on_close(self, event): -
src/sas/perspectives/calculator/slit_length_calculator_panel.py
rd5419f7f r3db44fb 187 187 188 188 _TreeLocation = "user/perspectives/calculator/slit_calculator_help.html" 189 _doc_viewer = DocumentationWindow(self, -1, \190 _TreeLocation,"Slit Length Calculator Help")189 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 190 "Slit Length Calculator Help") 191 191 192 192 def on_close(self, event): -
src/sas/perspectives/fitting/basepage.py
r373d4ee r7801df8 2847 2847 """ 2848 2848 2849 if self.model == None: 2850 name = 'index.html' 2849 _TreeLocation = 'user/models/model_functions.html' 2850 if self.model != None: 2851 name = self.formfactorbox.GetValue() 2852 _PageAnchor = '#' + name 2853 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, 2854 _PageAnchor, name + "Help") 2851 2855 else: 2852 name = self.formfactorbox.GetValue() 2853 2854 if self.model != None: 2855 _docspath = 'user/models/model_functions.html#' + name 2856 _doc_viewer = DocumentationWindow(self, -1, _docspath, name + "Help") 2857 else: 2858 _doc_viewer = DocumentationWindow(self, -1, "index.html", \ 2859 "General Help") 2856 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 2857 "General Model Help") 2860 2858 2861 2859 … … 2908 2906 2909 2907 _TreeLocation = "_images/M_angles_pic.bmp" 2910 _doc_viewer = DocumentationWindow(self, -1, \2911 _TreeLocation,"Magnetic Angle Defintions")2908 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 2909 "Magnetic Angle Defintions") 2912 2910 2913 2911 def _on_mag_on(self, event): … … 2953 2951 """ 2954 2952 2955 _TreeLocation = "user/perspectives/fitting/ fitting_help.html"2956 _ TreeLocation += "#polydispersity-distributions"2957 _doc_viewer = DocumentationWindow(self, -1, \2958 _TreeLocation, "Polydispersity Help")2953 _TreeLocation = "user/perspectives/fitting/pd_help.html" 2954 _PageAnchor = "" 2955 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, 2956 _PageAnchor, "Polydispersity Help") 2959 2957 2960 2958 def on_left_down(self, event): -
src/sas/perspectives/fitting/fitpage.py
r5265420 r7801df8 16 16 from sas.guiframe.utils import format_number 17 17 from sas.guiframe.utils import check_float 18 from sas.guiframe.documentation_window import DocumentationWindow 18 19 19 20 (Chi2UpdateEvent, EVT_CHI2_UPDATE) = wx.lib.newevent.NewEvent() … … 188 189 def _fill_range_sizer(self): 189 190 """ 190 Fill the sizer containing the plotting range 191 add access to npts 191 Fill the Fitting sizer on the fit panel which contains: the smearing 192 information (dq), the weighting information (dI or other), the plotting 193 range, access to the 2D mask editor, the compute, fit, and help 194 buttons, xi^2, number of points etc. 192 195 """ 193 196 is_2Ddata = False … … 265 268 weighting_box.Add(sizer_weighting) 266 269 267 sizer_fit = wx.GridSizer(2, 4, 2, 6)270 sizer_fit = wx.GridSizer(2, 5, 2, 6) 268 271 269 272 # combobox for smear2d accuracy selection … … 284 287 self.btFit.SetToolTipString("Start fitting.") 285 288 289 #General Help button 290 self.btFitHelp = wx.Button(self, -1, 'HELP') 291 self.btFitHelp.SetToolTipString("General Fitting Help.") 292 self.btFitHelp.Bind(wx.EVT_BUTTON, self._onFitHelp) 293 294 #Resolution Smearing Help button 295 self.btSmearHelp = wx.Button(self, -1, '?') 296 self.btSmearHelp.SetToolTipString("Resolution Smearing Help.") 297 self.btSmearHelp.Bind(wx.EVT_BUTTON, self._onSmearHelp) 298 286 299 #textcntrl for custom resolution 287 300 self.smear_pinhole_max = ModelTextCtrl(self, -1, … … 391 404 #sizer_fit.Add(box_description_3, 0, 0) 392 405 sizer_fit.Add(self.draw_button, 0, 0) 406 sizer_fit.Add((-1,5)) 393 407 sizer_fit.Add(self.tcChi, 0, 0) 394 408 sizer_fit.Add(self.Npts_fit, 0, 0) 395 409 sizer_fit.Add(self.Npts_total, 0, 0) 396 410 sizer_fit.Add(self.btFit, 0, 0) 411 sizer_fit.Add(self.btFitHelp, 0, 0) 397 412 398 413 # StaticText for smear … … 1046 1061 self.fit_started = self._manager.onFit(uid=self.uid) 1047 1062 wx.CallAfter(self.set_fitbutton) 1063 1064 def _onFitHelp(self, event): 1065 """ 1066 Bring up the Full Fitting Documentation whenever the HELP button is 1067 clicked. 1068 1069 Calls DocumentationWindow with the path of the location within the 1070 documentation tree (after /doc/ ....". Note that when using old 1071 versions of Wx (before 2.9) and thus not the release version of 1072 installers, the help comes up at the top level of the file as 1073 webbrowser does not pass anything past the # to the browser when it is 1074 running "file:///...." 1075 1076 :param evt: Triggers on clicking the help button 1077 """ 1078 1079 _TreeLocation = "user/perspectives/fitting/fitting_help.html" 1080 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 1081 "General Fitting Help") 1082 1083 def _onSmearHelp(self, event): 1084 """ 1085 Bring up the instrumental resolution smearing Documentation whenever 1086 the ? button in the smearing box is clicked. 1087 1088 Calls DocumentationWindow with the path of the location within the 1089 documentation tree (after /doc/ ....". Note that when using old 1090 versions of Wx (before 2.9) and thus not the release version of 1091 installers, the help comes up at the top level of the file as 1092 webbrowser does not pass anything past the # to the browser when it is 1093 running "file:///...." 1094 1095 :param evt: Triggers on clicking the help button 1096 """ 1097 1098 _TreeLocation = "user/perspectives/fitting/sm_help.html" 1099 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 1100 "Instrumental Resolution Smearing \ 1101 Help") 1048 1102 1049 1103 def set_fitbutton(self): -
src/sas/perspectives/invariant/invariant_panel.py
rcce0ad3 r3db44fb 1893 1893 1894 1894 _TreeLocation = "user/perspectives/invariant/invariant_help.html" 1895 _doc_viewer = DocumentationWindow(self, -1, \1896 _TreeLocation,"Invariant Help")1895 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 1896 "Invariant Help") 1897 1897 1898 1898 -
src/sas/perspectives/pr/inversion_panel.py
r3d250da3 r3db44fb 958 958 959 959 _TreeLocation = "user/perspectives/pr/pr_help.html" 960 _doc_viewer = DocumentationWindow(self, -1, \961 _TreeLocation,"P(r) Help")960 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 961 "P(r) Help") 962 962 963 963
Note: See TracChangeset
for help on using the changeset viewer.