- Timestamp:
- May 13, 2015 11:02:47 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:
- f3377b8
- Parents:
- 4a5fedc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/fitting/media/fitting_help.rst
ra0637de ra6f3613 26 26 =================== 27 27 28 Preparing_to_fit_data_ 29 30 Single_Fit_ 31 32 Simultaneous_Fitting_ 33 34 Batch_Fitting_ 35 36 Model_Selection_ 37 38 Model_Category_Manager_ 39 40 Model_Functions_ 41 42 Custom_Model_Editor_ 43 44 Key_Combinations_ 45 46 Status_Bar_Help_ 47 48 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 49 50 .. _Preparing_to_fit_data: 28 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 51 29 52 30 Preparing to fit data … … 54 32 55 33 To fit some data you must first load some data, activate one or more data sets, 56 then send those data sets to the fitting perspective. 57 58 Instructions on how to do this are in the User Documentation section *Loading* 59 *Data*. 34 send those data sets to the fitting perspective, and select a model to fit to 35 each data set. 36 37 Instructions on how to load and activate data are in the User Documentation 38 section :ref:`Loading_data`. 60 39 61 40 SasView can fit data in one of three ways: 62 41 63 * in *Single* fit mode 64 * in *Simultaneous* fit mode 65 * in *Batch* fit mode 66 67 These modes of operation are described below. 68 69 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 70 71 .. _Single_Fit: 72 73 Single Fit 74 ---------- 42 * in *Single* fit mode - individual data sets are fitted independently one-by-one 43 44 * in *Simultaneous* fit mode - multiple data sets are fitted simultaneously to 45 the *same* model with/without constrained parameters (this might be useful, for 46 example, if you have measured the same sample at different contrasts) 47 48 * in *Batch* fit mode - multiple data sets are fitted sequentially to the 49 *same* model (this might be useful, for example, if you have performed a kinetic 50 or time-resolved experiment and have *lots* of data sets!) 51 52 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 53 54 Selecting a model 55 ----------------- 56 57 By default, the models in SasView are grouped into five categories 58 59 * *Shapes* - models describing 'objects' (spheres, cylinders, etc) 60 * *Shape-Independent* - models describing structure in terms of density 61 correlation functions, fractals, peaks, power laws, etc 62 * *Customized Models* - SasView-created (non-library) Python models 63 * *Uncategorised* - other models (for reflectivity, etc) 64 * *Structure Factor* - S(Q) models 65 66 Use the *Category* drop-down menu to chose a category of model, then select 67 a model from the drop-down menu beneath. You can decide your own model 68 categorizations using the :ref:`Category_Manager`. 69 70 Once you have selected a model you can read its help documentation by clicking 71 on the *Description* button to the right. 72 73 Show 1D/2D 74 ^^^^^^^^^^ 75 76 Models are normally fitted to 1D (ie, I(Q) vs Q) data sets, but some models in 77 SasView can also be fitted to 2D (ie, I(Qx,Qy) vs Qx vs Qy) data sets. 78 79 *NB: Magnetic scattering can only be fitted in SasView in 2D.* 80 81 To activate 2D fitting mode, click the *Show 2D* button on the *Fit Page*. To 82 return to 1D fitting model, click the same button (which will now say *Show 1D*). 83 84 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 85 86 Model Functions 87 --------------- 88 89 For a complete list of all the models available in SasView, see the section 90 :ref:`SasView_model_functions`. 91 92 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 93 94 .. _Category_Manager: 95 96 Category Manager 97 ---------------- 98 99 To change the model categorizations, click on the *Modify* button on the *Fit Page*. 100 101 Our SAS models are, by default, classified into 5 categories; shapes, 102 shape-independent, structure factor, and customized models, where these 103 categories (except the customized models) can be reassigned, added, and 104 removed using 'Category Manager'. Each models can also be enabled(shown)/ 105 disabled(hidden) from the category that they belong. The Category Manager 106 panel is accessible from the model category 'Modify' button in the fitting 107 panel or the 'View/Category Manager' menu in the menu bar (Fig. 1). 108 109 1) Enable/Disable models: Check/uncheck the check boxes to enable/disable the 110 models (Fig. 2). 111 112 2) Change category: Highlight a model in the list by left-clicking and click 113 the 'Modify' button. In the 'Change Category' panel, one can create/use a 114 category for the model, then click the 'Add' button. In order to delete a 115 category, select a category name and click the 'Remove Selected' button 116 (Fig. 3). 117 118 3) To apply the changes made, hit the OK button. Otherwise, click the 'Cancel' 119 button (Fig. 2). 120 121 .. image:: cat_fig0.bmp 122 123 Fig.1 124 125 .. image:: cat_fig1.bmp 126 127 Fig.2 128 129 .. image:: cat_fig2.bmp 130 131 Fig.3 132 133 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 134 135 136 137 Change Model Parameters 138 ^^^^^^^^^^^^^^^^^^^^^^^ 139 140 To visualize model in a different window, from menu click on *Model*. Select 141 a type of model and then the name of your model.A new window will appear with 142 the plot of your model with default values. Change model's parameters on 143 *model view* tab and view the plotted model with its new parameters. 144 145 Write your Own Model 146 ^^^^^^^^^^^^^^^^^^^^ 147 148 The custom model editors are provided from 'Fitting' menu in the menu bar. 149 See 'Custom model editor' in the side menu on left. Advanced users can write 150 your own model and save it (in .py format) into *plugin_models* directory in 151 .sasview of your home directory (eg., username\.sasview>\plugin_models). Your 152 plugin model will be added into "<>Customized Models" on the next model 153 selection. 154 155 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 156 157 Custom Model Editor 158 ------------------- 159 160 Description 161 ^^^^^^^^^^^ 162 163 This menu (Fitting/Edit Custom Model in the menu bar) interface is to provide 164 you an easy way to write your own custom models. The changes in a model 165 function are effective after it is re-selected from the combo-box menu. 166 167 .. image:: edit_model_menu.bmp 168 169 New 170 --- 171 172 This option is used to make a new model. A model code generated by this option 173 can be viewed and further modified by the 'Advanced' option below. 174 175 .. image:: new_model.bmp 176 177 Sum|Multi(p1,p2) 178 ^^^^^^^^^^^^^^^^ 179 180 This option create a new sum (or multiplication) model. Fill up the (sum 181 model function) name and the description. The description will show up on 182 details button in the application. Then select the p1 or p2 model for the 183 sum/multi model, select an operator as necessary and click the Apply button 184 for activation. Hit the 'Close' button when it's done. 185 186 .. image:: sum_model.bmp 187 188 Advanced 189 ^^^^^^^^ 190 191 The menu option shows all the files in the plugin_models folder. You can edit, 192 modify, and save it. It is recommended to modify only the lines with arrow 193 (-------). In the end of edit, 'Compile' and 'Run' from the menu bar to 194 activate or to see the model working properly. 195 196 Delete 197 ^^^^^^ 198 199 The menu option is to delete the custom models. Just select the file name to 200 delete. 201 202 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 203 204 Key Combinations 205 ---------------- 206 207 Copy & Paste 208 ^^^^^^^^^^^^ 209 210 To copy the parameter values in a Fit(Model) panel to the clipboard: 211 212 *Ctrl(Cmd on MAC) + Left(Mouse)Click* on the panel. 213 214 To paste the parameter values to a Fit(Model)panel from the clipboard: 215 216 *Ctrl(Cmd on MAC) + Shift + Left(Mouse)Click* on the panel. 217 218 If this operation is successful, it will say so in the info line at the 219 bottom of the SasView window. 220 221 Bookmark 222 ^^^^^^^^ 223 224 Bookmark of a fit-panel or model-panel status: 225 226 *(Mouse)Right-Click* and select the bookmark in the popup list. 227 228 Graph Context Menu 229 ^^^^^^^^^^^^^^^^^^ 230 231 To get the graph context menu to print, copy, save data, (2D)average, etc.: 232 233 *Locate the mouse point on the plot to highlight and *(Mouse) Right Click* 234 to bring up the full menu. 235 236 FTolerance (SciPy) 237 ^^^^^^^^^^^^^^^^^^ 238 239 To change the ftol value of the Scipy FitEngine (leastsq): 240 241 First, make sure that the Fit panel has data and a model selected. 242 243 *Ctrl(Cmd on MAC) + Shift + Alt + Right(Mouse)Click* on the panel. 244 245 Then, set up the value in the dialog panel. 246 247 If this operation is successful, the new ftol value will be displayed in the 248 info line at the bottom of the SV window.Note that increasing the ftol value 249 may cause for the fitting to terminate with higher |chi| sq. 250 251 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 252 253 Single Fit Mode 254 --------------- 75 255 76 256 One of two fit-engines can be chosen from the Fitting menu bar. The Simple Fit- … … 89 269 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 90 270 91 .. _Simultaneous_Fitting: 92 93 Simultaneous Fitting 94 -------------------- 271 Simultaneous Fit Mode 272 --------------------- 95 273 96 274 This fitting option enables to set a number of the constraints between the … … 124 302 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 125 303 126 .. _Batch_Fitting: 127 128 Batch Fitting 129 ------------- 130 131 Batch_Fit_ 132 133 Batch_Window_ 134 135 Edit_Grid_ 136 137 Save_Grid_ 138 139 Open_Batch_Results_ 140 141 Plot_ 142 143 View_Column_Cell_ 144 145 .. _Batch_Fit: 304 Batch Fit Mode 305 -------------- 146 306 147 307 Batch Fit 148 --------- 308 ^^^^^^^^^ 149 309 150 310 Create a *Batch Page* by selecting the *Batch* radio button on the DataExplorer … … 178 338 lots of, and similar, data sets. 179 339 180 .. _Batch_Window:181 182 340 Batch Window 183 ------------ 341 ^^^^^^^^^^^^ 184 342 Batch Window provides an easy way to view the fit results, i.e., plot data, 185 343 fits, and residuals. Batch window will be automatically shown after a batch … … 193 351 Figure 2: Edit Menu: 194 352 195 .. _Edit_Grid:196 197 353 Edit Grid 198 --------- 354 ^^^^^^^^^ 199 355 200 356 Once a batch fit is completed, all fitted and fixed model parameters are … … 218 374 Figure 3: Edit Menu: 219 375 220 .. _Save_Grid:221 222 376 Save Grid 223 --------- 377 ^^^^^^^^^ 224 378 To save the current page on the batch window, select the *'File'* menubar 225 379 item(see Figure 4), then choose the *'Save as'* menu item to save it as a … … 233 387 the current grid before modifying it . 234 388 235 .. _Open_Batch_Results: 236 237 Open Batch Results 238 ------------------ 389 Open Batch Results 390 ^^^^^^^^^^^^^^^^^^ 239 391 240 392 Any *csv* file can be opened in the grid by selecting the *'Open'* under … … 247 399 Figure 4: MenuBar: 248 400 249 .. _Plot:250 251 401 Plot 252 ---- 402 ^^^^ 253 403 254 404 To *plot* a column versus another, select one column at the time, click the … … 288 438 Figure 5: Plotting 289 439 290 .. _View_Column_Cell:291 292 440 View Column/Cell(s) 293 ------------------- 441 ^^^^^^^^^^^^^^^^^^^ 294 442 295 443 Select 1 or more cells from the same column, click the 'View Fits' button to … … 312 460 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 313 461 314 .. _Model_Selection:315 316 Model_Type_317 318 Change_Model_Parameters_319 320 Write_your_Own_Model_321 322 .. _Model_Type:323 324 Model Type325 ----------326 327 Models are grouped into three classes328 329 * *Shapes*330 * *Shape-Independent*331 * *Uncategorised*332 * *Customized Models*333 * *Structure Factor*334 335 .. _Change_Model_Parameters:336 337 Change Model Parameters338 -----------------------339 340 To visualize model in a different window, from menu click on *Model*. Select341 a type of model and then the name of your model.A new window will appear with342 the plot of your model with default values. Change model's parameters on343 *model view* tab and view the plotted model with its new parameters.344 345 .. _Write_your_Own_Model:346 347 Write your Own Model348 --------------------349 350 The custom model editors are provided from 'Fitting' menu in the menu bar.351 See 'Custom model editor' in the side menu on left. Advanced users can write352 your own model and save it (in .py format) into *plugin_models* directory in353 .sasview of your home directory (eg., username\.sasview>\plugin_models). Your354 plugin model will be added into "<>Customized Models" on the next model355 selection.356 357 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ358 359 .. _Model_Category_Manager:360 361 Model Category Manager362 ----------------------363 364 Our SAS models are, by default, classified into 5 categories; shapes,365 shape-independent, structure factor, and customized models, where these366 categories (except the customized models) can be reassigned, added, and367 removed using 'Category Manager'. Each models can also be enabled(shown)/368 disabled(hidden) from the category that they belong. The Category Manager369 panel is accessible from the model category 'Modify' button in the fitting370 panel or the 'View/Category Manager' menu in the menu bar (Fig. 1).371 372 1) Enable/Disable models: Check/uncheck the check boxes to enable/disable the373 models (Fig. 2).374 375 2) Change category: Highlight a model in the list by left-clicking and click376 the 'Modify' button. In the 'Change Category' panel, one can create/use a377 category for the model, then click the 'Add' button. In order to delete a378 category, select a category name and click the 'Remove Selected' button379 (Fig. 3).380 381 3) To apply the changes made, hit the OK button. Otherwise, click the 'Cancel'382 button (Fig. 2).383 384 .. image:: cat_fig0.bmp385 386 Fig.1387 388 .. image:: cat_fig1.bmp389 390 Fig.2391 392 .. image:: cat_fig2.bmp393 394 Fig.3395 396 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ397 398 .. _Model_Functions:399 400 Model Functions401 ---------------402 403 See *Model Documentation*.404 405 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ406 407 .. _Custom_Model_Editor:408 409 Custom Model Editor410 -------------------411 412 Description_413 414 New_415 416 Sum_Multi_p1_p2_417 418 Advanced_419 420 Delete_421 422 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ423 424 .. _Description:425 426 Description427 -----------428 429 This menu (Fitting/Edit Custom Model in the menu bar) interface is to provide430 you an easy way to write your own custom models. The changes in a model431 function are effective after it is re-selected from the combo-box menu.432 433 .. image:: edit_model_menu.bmp434 435 .. _New:436 437 New438 ---439 440 This option is used to make a new model. A model code generated by this option441 can be viewed and further modified by the 'Advanced' option below.442 443 .. image:: new_model.bmp444 445 .. _Sum_Multi_p1_p2:446 447 Sum|Multi(p1,p2)448 ----------------449 450 This option create a new sum (or multiplication) model. Fill up the (sum451 model function) name and the description. The description will show up on452 details button in the application. Then select the p1 or p2 model for the453 sum/multi model, select an operator as necessary and click the Apply button454 for activation. Hit the 'Close' button when it's done.455 456 .. image:: sum_model.bmp457 458 .. _Advanced:459 460 Advanced461 --------462 463 The menu option shows all the files in the plugin_models folder. You can edit,464 modify, and save it. It is recommended to modify only the lines with arrow465 (-------). In the end of edit, 'Compile' and 'Run' from the menu bar to466 activate or to see the model working properly.467 468 .. _Delete:469 470 Delete471 ------472 473 The menu option is to delete the custom models. Just select the file name to474 delete.475 476 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ477 478 .. _Key_Combinations:479 480 Key Combinations481 ----------------482 483 Copy_Paste_484 485 Bookmark_486 487 Graph_Context_Menu_488 489 FTolerance_490 491 .. _Copy_Paste:492 493 Copy & Paste494 ------------495 496 To copy the parameter values in a Fit(Model) panel to the clipboard:497 498 *Ctrl(Cmd on MAC) + Left(Mouse)Click* on the panel.499 500 To paste the parameter values to a Fit(Model)panel from the clipboard:501 502 *Ctrl(Cmd on MAC) + Shift + Left(Mouse)Click* on the panel.503 504 If this operation is successful, it will say so in the info line at the505 bottom of the SasView window.506 507 .. _Bookmark:508 509 Bookmark510 --------511 512 Bookmark of a fit-panel or model-panel status:513 514 *(Mouse)Right-Click* and select the bookmark in the popup list.515 516 .. _Graph_Context_Menu:517 518 Graph Context Menu519 ------------------520 521 To get the graph context menu to print, copy, save data, (2D)average, etc.:522 523 *Locate the mouse point on the plot to highlight and *(Mouse) Right Click*524 to bring up the full menu.525 526 .. _FTolerance:527 528 FTolerance (SciPy)529 ------------------530 531 To change the ftol value of the Scipy FitEngine (leastsq):532 533 First, make sure that the Fit panel has data and a model selected.534 535 *Ctrl(Cmd on MAC) + Shift + Alt + Right(Mouse)Click* on the panel.536 537 Then, set up the value in the dialog panel.538 539 If this operation is successful, the new ftol value will be displayed in the540 info line at the bottom of the SV window.Note that increasing the ftol value541 may cause for the fitting to terminate with higher |chi| sq.542 543 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ544 545 .. _Status_Bar_Help:546 547 462 Status Bar Help 548 --------------- 549 550 Message_Warning_Hint_ 551 552 Console_ 553 554 .. _Message_Warning_Hint: 463 ^^^^^^^^^^^^^^^ 555 464 556 465 Message/Warning/Hint 557 -------------------- 466 ^^^^^^^^^^^^^^^^^^^^ 558 467 559 468 The status bar located at the bottom of the application frame, displays 560 469 messages, hints, warnings and errors. 561 470 562 .. _Console:563 564 471 Console 565 ------- 472 ^^^^^^^ 566 473 567 474 Select *light bulb/info icon* button in the status bar at the bottom of the
Note: See TracChangeset
for help on using the changeset viewer.