Changeset b9a5f0e in sasview for src/sas/perspectives/fitting
- Timestamp:
- Feb 13, 2015 4:52:52 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:
- fd5ac0d
- Parents:
- 35ec279
- Location:
- src/sas/perspectives/fitting
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/fitting/basepage.py
r79492222 rb9a5f0e 2015 2015 temp_smear = self.current_smearer 2016 2016 # compute weight for the current data 2017 from sas import get_weight2017 from sas.perspectives.fitting.utils import get_weight 2018 2018 flag = self.get_weight_flag() 2019 2019 weight = get_weight(data=self.data, is2d=self._is_2D(), flag=flag) … … 3136 3136 """ 3137 3137 from help_panel import HelpWindow 3138 import sas.models as models3138 import sas.models as models 3139 3139 3140 3140 # Get models help model_function path … … 3173 3173 Get the string copies of the param names and values in the tap 3174 3174 """ 3175 content = 'sa nsview_parameter_values:'3175 content = 'sasview_parameter_values:' 3176 3176 # Do it if params exist 3177 3177 if self.parameters != []: … … 3402 3402 # put the text into dictionary 3403 3403 lines = text.split(':') 3404 if lines[0] != 'sa nsview_parameter_values':3404 if lines[0] != 'sasview_parameter_values': 3405 3405 self._copy_info(False) 3406 3406 return False -
src/sas/perspectives/fitting/console.py
r79492222 rb9a5f0e 147 147 d_flag = (hasattr(self.result, "data") and \ 148 148 self.result.data is not None and \ 149 hasattr(self.result.data, "sa ns_data") and150 self.result.data.sa ns_data is not None)149 hasattr(self.result.data, "sas_data") and 150 self.result.data.sas_data is not None) 151 151 m_flag = (hasattr(self.result, "model") and \ 152 152 self.result.model is not None) 153 153 if d_flag: 154 data_name = self.result.data.sa ns_data.name154 data_name = self.result.data.sas_data.name 155 155 if m_flag: 156 156 model_name = str(self.result.model.name) -
src/sas/perspectives/fitting/fitpage.py
r79492222 rb9a5f0e 608 608 model_disp = wx.StaticText(self, -1, 'Function') 609 609 CHECK_STATE = self.cb1.GetValue() 610 import sas.models.dispersion_models610 import sas.models.dispersion_models 611 611 self.polydisp = sas.models.dispersion_models.models 612 612 … … 2175 2175 """ 2176 2176 # compute weight for the current data 2177 from sas import get_weight2177 from sas.perspectives.fitting.utils import get_weight 2178 2178 flag_weight = self.get_weight_flag() 2179 2179 if is_2D == None: -
src/sas/perspectives/fitting/fitting.py
r79492222 rb9a5f0e 33 33 from sas.guiframe.data_processor import BatchCell 34 34 from sas.fit.Fitting import Fit 35 from sas import ConsoleUpdate36 from sas import FitProblemDictionary37 from sas import FitPanel38 from sas import ResultPanel, PlotResultEvent39 40 from sas import FitThread41 from sas import Reader42 from sas import Chi2UpdateEvent35 from sas.perspectives.fitting.console import ConsoleUpdate 36 from sas.perspectives.fitting.fitproblem import FitProblemDictionary 37 from sas.perspectives.fitting.fitpanel import FitPanel 38 from sas.perspectives.fitting.resultpanel import ResultPanel, PlotResultEvent 39 40 from sas.perspectives.fitting.fit_thread import FitThread 41 from sas.perspectives.fitting.pagestate import Reader 42 from sas.perspectives.fitting.fitpage import Chi2UpdateEvent 43 43 from sas.perspectives.calculator.model_editor import TextDialog 44 44 from sas.perspectives.calculator.model_editor import EditorWindow -
src/sas/perspectives/fitting/ftol_dialog.py
r79492222 rb9a5f0e 17 17 # default ftol 18 18 F_TOL = 1.49012e-08 19 SA NS_F_TOL = 5e-0519 SAS_F_TOL = 5e-05 20 20 21 21 PANEL_WIDTH = 270 … … 38 38 vbox = wx.BoxSizer(wx.VERTICAL) 39 39 title_text = wx.StaticText(self, id=wx.NewId(), label='FTol selection (Leastsq)') 40 self.default_bt = wx.RadioButton(self, -1, 'Sa nsView Default (5e-05)', (15, 30), style=wx.RB_GROUP)40 self.default_bt = wx.RadioButton(self, -1, 'SasView Default (5e-05)', (15, 30), style=wx.RB_GROUP) 41 41 self.default_bt.SetValue(True) 42 42 self.default_bt.Bind(wx.EVT_RADIOBUTTON, self.OnFtolSelection) … … 88 88 """ 89 89 if self.default_bt.GetValue(): 90 return SA NS_F_TOL90 return SAS_F_TOL 91 91 elif self.sci_default_bt.GetValue(): 92 92 return F_TOL … … 102 102 except: 103 103 return None 104 return SA NS_F_TOL104 return SAS_F_TOL -
src/sas/perspectives/fitting/media/category_manager_help.html
r79492222 rb9a5f0e 9 9 <p> 10 10 11 Our SA NS models are, by default, classified into 5 categories; shapes, shape-independent,11 Our SAS models are, by default, classified into 5 categories; shapes, shape-independent, 12 12 structure factor, and customized models, where these categories (except the customized models) can be reassigned, added, and removed using 'Category Manager'. 13 13 Each models can also be enabled(shown)/disabled(hidden) from the category that they -
src/sas/perspectives/fitting/media/model_use_help.html
r79492222 rb9a5f0e 31 31 See 'Custom model editor' in the side menu on left. 32 32 Advanced users can write your own model and save it (in .py format) into <b>plugin_models</b> directory 33 in .sa nsview of your home directory (eg., username\.sansview>\plugin_models). You plugin33 in .sasview of your home directory (eg., username\.sasview>\plugin_models). You plugin 34 34 model will be added into "<>Customized Models</>" on the next model selection. 35 35 </p> -
src/sas/perspectives/fitting/models.py
r79492222 rb9a5f0e 159 159 dir = find_plugins_dir() 160 160 if not os.path.isdir(dir): 161 msg = "Sa nsView couldn't locate Model plugin folder."161 msg = "SasView couldn't locate Model plugin folder." 162 162 msg += """ "%s" does not exist""" % dir 163 163 logging.warning(msg) -
src/sas/perspectives/fitting/pagestate.py
r79492222 rb9a5f0e 973 973 ## Wildcards 974 974 type = ["Fitting files (*.fitv)|*.fitv" 975 "SA NSView file (*.svs)|*.svs"]975 "SASView file (*.svs)|*.svs"] 976 976 ## List of allowed extensions 977 977 ext = ['.fitv', '.FITV', '.svs', 'SVS'] -
src/sas/perspectives/fitting/plugin_models/polynomial5.py
r79492222 rb9a5f0e 11 11 Please select the 'Compile' from the menubar after the modification and saving. 12 12 Note that we recommend to save the file as a different file name. 13 Otherwise, it could be removed in the future on re-installation of the Sa nsView.13 Otherwise, it could be removed in the future on re-installation of the SasView. 14 14 ## ***************************************************************************** 15 15 """ -
src/sas/perspectives/fitting/plugin_models/sph_bessel_jn.py
r79492222 rb9a5f0e 11 11 Please select the 'Compile' from the menubar after the modification and saving. 12 12 Note that we recommend to save the file as a different file name. 13 Otherwise, it could be removed in the future on re-installation of the Sa nsView.13 Otherwise, it could be removed in the future on re-installation of the SasView. 14 14 ## ***************************************************************************** 15 15 """ -
src/sas/perspectives/fitting/plugin_models/sum_Ap1_1_Ap2.py
r79492222 rb9a5f0e 8 8 Please select the 'Compile' from the menubar after the modification and saving. 9 9 Note that we recommend to save the file as a different file name. 10 Otherwise, it could be removed in the future on re-installation of the Sa nsView.10 Otherwise, it could be removed in the future on re-installation of the SasView. 11 11 ## ***************************************************************************** 12 12 """ -
src/sas/perspectives/fitting/plugin_models/sum_p1_p2.py
r79492222 rb9a5f0e 8 8 Please select the 'Compile' from the menubar after the modification and saving. 9 9 Note that we recommend to save the file as a different file name. 10 Otherwise, it could be removed in the future on re-installation of the Sa nsView.10 Otherwise, it could be removed in the future on re-installation of the SasView. 11 11 ## ***************************************************************************** 12 12 """ -
src/sas/perspectives/fitting/plugin_models/testmodel.py
r79492222 rb9a5f0e 11 11 Please select the 'Compile' from the menubar after the modification and saving. 12 12 Note that we recommend to save the file as a different file name. 13 Otherwise, it could be removed in the future on re-installation of the Sa nsView.13 Otherwise, it could be removed in the future on re-installation of the SasView. 14 14 ## ***************************************************************************** 15 15 """ -
src/sas/perspectives/fitting/plugin_models/testmodel_2.py
r79492222 rb9a5f0e 11 11 Please select the 'Compile' from the menubar after the modification and saving. 12 12 Note that we recommend to save the file as a different file name. 13 Otherwise, it could be removed in the future on re-installation of the Sa nsView.13 Otherwise, it could be removed in the future on re-installation of the SasView. 14 14 ## ***************************************************************************** 15 15 """
Note: See TracChangeset
for help on using the changeset viewer.