Changes in / [aff7904:5881b17] in sasview
- Files:
-
- 1 deleted
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
build_tools/conda/bumps/meta.yaml
r243fbc0 rb75079b 1 1 package: 2 2 name: bumps 3 version: !!str 0.7.5. 93 version: !!str 0.7.5.4 4 4 5 5 source: 6 fn: bumps-0.7.5. 9.tar.gz7 url: https://pypi.python.org/packages/source/b/bumps/bumps-0.7.5. 9.tar.gz6 fn: bumps-0.7.5.4.tar.gz 7 url: https://pypi.python.org/packages/source/b/bumps/bumps-0.7.5.4.tar.gz 8 8 md5: a47c035fbb18afa5ca53067506a5ff1c 9 9 # patches: -
build_tools/jenkins_linux_build.sh
r243fbc0 r9d5427f 15 15 rm -rf build 16 16 17 "$EASY_INSTALL" -d "$WORKSPACE/utils" bumps==0.7.5. 917 "$EASY_INSTALL" -d "$WORKSPACE/utils" bumps==0.7.5.6 18 18 "$EASY_INSTALL" -d "$WORKSPACE/utils" periodictable==1.3.0 19 19 -
build_tools/jenkins_linux_build_ver02.sh
r243fbc0 r22c1f1c 27 27 28 28 29 "$EASY_INSTALL" -d "$WORKSPACE/sasview/utils" bumps==0.7.5. 929 "$EASY_INSTALL" -d "$WORKSPACE/sasview/utils" bumps==0.7.5.6 30 30 "$EASY_INSTALL" -d "$WORKSPACE/sasview/utils" periodictable==1.3.0 31 31 -
build_tools/jenkins_osx_build.sh
r5881b17 r5881b17 55 55 cd sasview 56 56 $PYTHON setup.py clean 57 $PYTHON setup.py build docs bdist_egg 57 $PYTHON setup.py build 58 #$PYTHON setup.py docs 58 59 59 60 60 # INSTALL SASVIEW61 # SASVIEW BUILD_egg with new docs 61 62 cd $WORKSPACE 62 63 cd sasview 64 $PYTHON setup.py docs bdist_egg 63 65 cd dist 64 66 $EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg 65 66 67 67 68 # TEST … … 71 72 #$PYTHON utest_sasview.py 72 73 73 # PYLINT 74 cd $WORKSPACE 75 cd sasview 76 $PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee test/sasview.txt 74 ## PYLINT 75 #cd $WORKSPACE 76 #cd sasview 77 #$PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee test/sasview.txt 78 77 79 78 80 # BUILD APP 79 cd $WORKSPACE80 cd sasview/sasview81 $PYTHON setup_mac.py py2app81 #cd $WORKSPACE 82 #cd sasview/sasview 83 #$PYTHON setup_mac.py py2app 82 84 -
build_tools/jenkins_rhel6_build.sh
r243fbc0 r9d5427f 28 28 "$EASY_INSTALL" -d "$WORKSPACE/utils" lxml 29 29 "$EASY_INSTALL" -d "$WORKSPACE/utils" pyparsing==1.5.5 30 "$EASY_INSTALL" -d "$WORKSPACE/utils" bumps==0.7.5. 930 "$EASY_INSTALL" -d "$WORKSPACE/utils" bumps==0.7.5.6 31 31 "$EASY_INSTALL" -d "$WORKSPACE/utils" periodictable==1.3.0 32 32 python deps.py -
build_tools/jenkins_win32_build.bat
r243fbc0 r9d5427f 16 16 RD /S /Q build 17 17 18 rem %PYTHON% -m pip install -t ../sasview-install --no-deps bumps=0.7.5. 918 rem %PYTHON% -m pip install -t ../sasview-install --no-deps bumps=0.7.5.6 19 19 rem PYTHON% -m pip install -t ../sasview-install --no-deps periodictable=1.3.0 20 20 rem %PYTHON% -m pip install -t ../sasview-install --no-deps pyparsing=1.5.5 -
build_tools/jenkins_win32_py27_build.bat
r243fbc0 r9d5427f 16 16 RD /S /Q build 17 17 18 rem %PYTHON% -m pip install -t ../sansview-install --no-deps bumps=0.7.5. 918 rem %PYTHON% -m pip install -t ../sansview-install --no-deps bumps=0.7.5.6 19 19 rem PYTHON% -m pip install -t ../sansview-install --no-deps periodictable=1.3.0 20 20 rem %PYTHON% -m pip install -t ../sansview-install --no-deps pyparsing=1.5.5 -
build_tools/requirements.txt
r243fbc0 ra985c93 9 9 PIL==1.1.7 10 10 periodictable==1.3.0 11 bumps==0.7.5. 911 bumps==0.7.5.5 12 12 # numpy==1.6.1 13 13 # scipy==0.10.1 -
check_packages.py
r243fbc0 r8e7044c 19 19 'pylint':{'version':None,'import_name':'pylint','test':None}, 20 20 'periodictable':{'version':'1.3.0','import_name':'periodictable','test':'__version__'}, 21 'bumps':{'version':'0.7.5. 9','import_name':'bumps','test':'__version__'},21 'bumps':{'version':'0.7.5.7','import_name':'bumps','test':'__version__'}, 22 22 'numpy':{'version':'1.6.1','import_name':'numpy','test':'__version__'}, 23 23 'scipy':{'version':'0.10.1','import_name':'scipy','test':'__version__'}, -
sasview/README.txt
r243fbc0 r792e6be 4 4 1- Features 5 5 =========== 6 7 - New in Version 4.0.0-alpha8 --------------------9 This alpha release brings a major overhaul of the model system. The new model10 package allows rapid integration of custom models and access to polydispersity11 without requiring a compiler.12 13 - Model package changes and improvements14 - Model interface moved to independent sasmodels package.15 - Most models converted to new interface.16 - Allows rapid integration of user-written models.17 - OpenCL GPU utilization for faster fitting.18 - Improved numerical integration of Bessel functions.19 - SESANS integration and implementation20 - Scripting interface added for analysis of SESANS data.21 - Hankel transformation now accepts finite acceptance angles.22 - 2D cosine transformation added for TOF SESANS analysis.23 - Documentation improvements24 - The documentation tree was restructured for a better end user experience.25 - The documentation for each model was revamped and verified by at least26 two people following the conversion of the model.27 - Theoretical 1D (and 2D if applicable) scattering curves are auto-generated28 and added to the model documentation for each model.29 - Separation of GUI and calculations for future GUI enhancements30 - Bug fixes31 - Fixes bug #411 No stop button on simultaneous fit page32 - Fixes bug #410 Error with raspberry model33 - Fixes bug #364 Possible inconsistency in Poly_GausCoil model34 - Fixes bug #439 Hayter Penfold MSA code needs checking35 - Fixes bug #484 lammellerPC is precision limited36 - Fixes bug #498 $HOME/.matplotlib conflicts37 - Fixes bug #348 Control order in which fit parameters appear in the gui38 - Fixes bug #456 Provide DREAM Results Panel with something to identify39 data and age of results40 - Fixes bug #556 Build script improvements for developers41 42 43 6 44 7 - New in Version 3.1.2 … … 343 306 - unittest-xml-reporting 1.12.0 (MAC 1.10.0) 344 307 - matplotlib Version Installed: 1.4.3 (MAC 1.1.1) 345 - bumps Version Installed: 0.7.5. 9308 - bumps Version Installed: 0.7.5.6 346 309 - scipy Version Installed: 0.16.0b2 (MAC 0.11.0) 347 310 - periodictable Version Installed: 1.4.1 -
sasview/__init__.py
rfa4ea80 r792e6be 1 __version__ = " 4.0.0-alpha"1 __version__ = "3.1.2" 2 2 __build__ = "1" -
sasview/default_categories.json
r42585bf r6313823 1 {"Shapes": [[" cylinder", true], ["lamellar_stack_paracrystal", true], ["multilayer_vesicle", true], ["core_shell_cylinder", true], ["lamellar_hg", true], ["fuzzy_sphere", true], ["sphere", true], ["triaxial_ellipsoid", true], ["rectangular_prism", true], ["core_shell_bicelle", true], ["flexible_cylinder", true], ["flexible_cylinder_elliptical", true], ["binary_hard_sphere", true], ["core_multi_shell", true], ["sc_paracrystal", true], ["ellipsoid", true], ["capped_cylinder", true], ["core_shell_ellipsoid", true], ["fcc_paracrystal", true], ["core_shell_parallelepiped", true], ["core_shell_ellipsoid_xt", true], ["elliptical_cylinder", true], ["pringle", true], ["hollow_rectangular_prism_thin_walls", true], ["hollow_rectangular_prism", true], ["vesicle", true], ["polymer_micelle", true], ["parallelepiped", true], ["hollow_cylinder", true], ["linear_pearls", true], ["spherical_sld", true], ["raspberry", true], ["lamellar_hg_stack_caille", true], ["pearl_necklace", true], ["lamellar", true], ["onion", true], ["lamellar_stack_caille", true], ["bcc_paracrystal", true], ["core_shell_sphere", true], ["stacked_disks", true]], "Structure Factor": [["hayter_msa", true], ["squarewell", true], ["stickyhardsphere", true], ["hardsphere", true]], "Shape-Independent": [["guinier_porod", true], ["polymer_excl_volume", true], ["gel_fit", true], ["teubner_strey", true], ["mono_gauss_coil", true], ["mass_surface_fractal", true], ["mass_fractal", true], ["adsorbed_layer", true], ["two_lorentzian", true], ["fractal", true], ["fractal_core_shell", true], ["dab", true], ["poly_gauss_coil", true], ["star_polymer", true], ["broad_peak", true], ["surface_fractal", true], ["two_power_law", true], ["power_law", true], ["rpa", true], ["be_polyelectrolyte", true], ["peak_lorentz", true], ["guinier", true], ["correlation_length", true], ["line", true], ["gaussian_peak", true], ["porod", true], ["gauss_lorentz_gel", true], ["lorentz", true]]}1 {"Shapes": [["barbell", true], ["pearl_necklace", true], ["hollow_cylinder", true], ["CoreMultiShellModel", true], ["fcc_paracrystal", true], ["parallelepiped", true], ["fuzzy_sphere", true], ["core_shell_ellipsoid_xt", true], ["lamellarPC", true], ["bcc_paracrystal", true], ["ellptical_cylinder", true], ["hollow_rectangular_prism_infinitely_thin_walls", true], ["core_shell_parallelepiped", true], ["OnionExpShellModel", true], ["multi_shell", true], ["raspberry", true], ["core_shell_ellipsoid", true], ["capped_cylinder", true], ["cylinder", true], ["SphericalSLDModel", true], ["sc_crystal", true], ["stacked_disks", true], ["LamellarPSHGModel", true], ["core_shell_bicelle", true], ["hollow_rectangular_prism", true], ["LamellarPSModel", true], ["ellipsoid", true], ["sphere", true], ["vesicle", true], ["triaxial_ellipsoid", true], ["lamellar", true], ["pringles", true], ["rectangular_prism", true], ["core_shell_cylinder", true], ["BinaryHSModel", true], ["flexible_cylinder", true], ["lamellarFFHG", true], ["flexible_cylinder_ex", true], ["linear_pearls", true], ["core_shell_sphere", true]], "Structure Factor": [["squarewell", true], ["hayter_msa", true], ["hardsphere", true], ["stickyhardsphere", true]], "Shape-Independent": [["two_power_law", true], ["gel_fit", true], ["dab", true], ["power_law", true], ["porod", true], ["guinier", true], ["rpa", true], ["teubner_strey", true], ["star_polymer", true], ["UnifiedPowerRgModel", true], ["mass_surface_fractal", true], ["adsorbed_layer", true], ["two_lorentzian", true], ["mono_gauss_coil", true], ["mass_fractal", true], ["guinier_porod", true], ["correlation_length", true], ["polymer_excl_volume", true], ["FractalModel", true], ["peak_lorentz", true], ["broad_peak", true], ["fractal_core_shell", true], ["gaussian_peak", true], ["be_polyelectrolyte", true], ["poly_gauss_coil", true], ["surface_fractal", true], ["gauss_lorentz_gel", true], ["lorentz", true]], "Uncategorized": [["ReflectivityModel", true], ["ReflectivityIIModel", true], ["line", true], ["micell_spherical_coil", true]]} -
sasview/setup_exe.py
ra7c4ad2 r40fc798 256 256 data_files += guiframe.data_files() 257 257 258 #import sas.models as models 259 import sasmodels.models as models 258 import sas.models as models 260 259 data_files += models.data_files() 261 260 … … 339 338 packages = [ 340 339 'matplotlib', 'scipy', 'encodings', 'comtypes', 341 'win32com', 'xhtml2pdf', 'bumps', 'sasmodels', 'sas',340 'win32com', 'xhtml2pdf', 'bumps', 342 341 ] 343 342 packages.extend([ -
sasview/setup_mac.py
r5881b17 r5881b17 43 43 import sas.sasgui.perspectives.invariant as invariant 44 44 DATA_FILES += invariant.data_files() 45 #import sas.models as models 45 46 import sasmodels.models as models 46 47 DATA_FILES += models.data_files() -
setup.py
r5881b17 r5881b17 249 249 250 250 package_dir["sas.sasgui.perspectives.fitting"] = os.path.join("src", "sas", "sasgui", "perspectives", "fitting") 251 package_dir["sas.sasgui.perspectives.fitting.plugin_models"] = os.path.join("src", "sas", "sasgui", "perspectives", "fitting", "plugin_models") 252 packages.extend(["sas.sasgui.perspectives.fitting", "sas.sasgui.perspectives.fitting.plugin_models"]) 253 package_data['sas.sasgui.perspectives.fitting'] = ['media/*', 'plugin_models/*'] 251 packages.extend(["sas.sasgui.perspectives.fitting"]) 252 package_data['sas.sasgui.perspectives.fitting'] = ['media/*'] 254 253 255 254 packages.extend(["sas.sasgui.perspectives", "sas.sasgui.perspectives.calculator"]) … … 320 319 321 320 required = [ 322 'bumps>=0.7.5. 9', 'periodictable>=1.3.1', 'pyparsing<2.0.0',321 'bumps>=0.7.5.6', 'periodictable>=1.3.1', 'pyparsing<2.0.0', 323 322 324 323 # 'lxml>=2.2.2', -
src/sas/sascalc/calculator/BaseComponent.py
rcb4ef58 r53aa66d 50 50 self.output_unit = "cm^{-1}" 51 51 52 self.is_multiplicity_model = False53 self.is_structure_factor = False54 self.is_form_factor = False55 56 52 def __str__(self): 57 53 """ -
src/sas/sascalc/calculator/sas_gen.py
rcb4ef58 r9e531f2 80 80 ## Parameter details [units, min, max] 81 81 self.details = {} 82 self.details['scale'] = ['', 0.0, numpy.inf]83 self.details['background'] = ['[1/cm]', 0.0, numpy.inf]84 self.details['solvent_SLD'] = ['1/A^(2)', -numpy.inf, numpy.inf]85 self.details['total_volume'] = ['A^(3)', 0.0, numpy.inf]86 self.details['Up_frac_in'] = ['[u/(u+d)]', 0.0, 1.0]87 self.details['Up_frac_out'] = ['[u/(u+d)]', 0.0, 1.0]88 self.details['Up_theta'] = ['[deg]', -numpy.inf, numpy.inf]82 self.details['scale'] = ['', None, None] 83 self.details['background'] = ['[1/cm]', None, None] 84 self.details['solvent_SLD'] = ['1/A^(2)', None, None] 85 self.details['total_volume'] = ['A^(3)', None, None] 86 self.details['Up_frac_in'] = ['[u/(u+d)]', None, None] 87 self.details['Up_frac_out'] = ['[u/(u+d)]', None, None] 88 self.details['Up_theta'] = ['[deg]', None, None] 89 89 # fixed parameters 90 90 self.fixed = [] -
src/sas/sascalc/fit/MultiplicationModel.py
rcb4ef58 r08959b8 1 2 from sas.sascalc.calculator.BaseComponent import BaseComponent 3 #import numpy, math 1 4 import copy 2 3 import numpy 4 5 from sas.sascalc.calculator.BaseComponent import BaseComponent 6 5 from sas.sascalc.fit.pluginmodel import Model1DPlugin 7 6 class MultiplicationModel(BaseComponent): 8 7 r""" … … 48 47 ## Parameter details [units, min, max] 49 48 self._set_details() 50 self.details['scale_factor'] = ['', 0.0, numpy.inf]49 self.details['scale_factor'] = ['', None, None] 51 50 52 51 #list of parameter that can be fitted … … 76 75 self.multiplicity_info = p_model.multiplicity_info 77 76 self.fun_list = p_model.fun_list 78 self.is_multiplicity_model = True79 77 except: 80 78 pass 81 79 else: 82 self.is_multiplicity_model = False 83 self.multiplicity_info = [0] 80 self.multiplicity_info = [] 84 81 85 82 def _clone(self, obj): -
src/sas/sasgui/perspectives/calculator/model_editor.py
rcb4ef58 raa03e0d 1329 1329 SUM_TEMPLATE = """ 1330 1330 # A sample of an experimental model function for Sum/Multiply(Pmodel1,Pmodel2) 1331 import os1332 import sys1333 1331 import copy 1334 1335 import nuympy1336 1337 1332 from sas.sascalc.fit.pluginmodel import Model1DPlugin 1338 1333 from sasmodels.sasview_model import make_class … … 1344 1339 #P2_model: 1345 1340 #from %s import Model as P2 1341 import os 1342 import sys 1346 1343 1347 1344 class Model(Model1DPlugin): … … 1388 1385 ## Parameter details [units, min, max] 1389 1386 self._set_details() 1390 self.details['scale_factor'] = ['', 0.0, numpy.inf]1387 self.details['scale_factor'] = ['', None, None] 1391 1388 1392 1389 -
src/sas/sasgui/perspectives/fitting/__init__.py
ra7c4ad2 r9e531f2 39 39 data_files = [] 40 40 path = os.path.dirname(__file__) 41 p_path = os.path.join(path, 'plugin_models')42 for f in findall(p_path):43 data_files.append(('plugin_models', [f]))41 # p_path = os.path.join(path, 'plugin_models') 42 # for f in findall(p_path): 43 # data_files.append(('plugin_models', [f])) 44 44 # path = get_data_path(media="media") 45 45 for f in findall(path): -
src/sas/sasgui/perspectives/fitting/basepage.py
rcb4ef58 r08959b8 1896 1896 for model in self.model_list_box[mod_cat]: 1897 1897 if 'sasmodels.sasview_model.' in str(model): 1898 str_m = model. id1898 str_m = model._model_info['id'] 1899 1899 else: 1900 1900 str_m = str(model).split(".")[0] … … 1945 1945 mlist = [] 1946 1946 for models in list: 1947 if models.name != "NoStructure": 1948 mlist.append((models.name, models)) 1947 model = models() 1948 name = model.__class__.__name__ 1949 if models.__name__ != "NoStructure": 1950 name = model.name 1951 mlist.append((name, models)) 1949 1952 1950 1953 # Sort the models … … 2096 2099 if form_factor != None: 2097 2100 # set multifactor for Mutifunctional models 2098 if form_factor.is_multiplicity_model: 2101 if form_factor().__class__ in \ 2102 self.model_list_box["Multi-Functions"]: 2099 2103 m_id = self.multifactorbox.GetCurrentSelection() 2100 multiplicity = form_factor .multiplicity_info[0]2104 multiplicity = form_factor().multiplicity_info[0] 2101 2105 self.multifactorbox.Clear() 2102 2106 self._set_multfactor_combobox(multiplicity) 2103 2107 self._show_multfactor_combobox() 2104 2108 #ToDo: this info should be called directly from the model 2105 text = form_factor .multiplicity_info[1] # 'No. of Shells: '2109 text = form_factor().multiplicity_info[1] # 'No. of Shells: ' 2106 2110 2107 2111 self.mutifactor_text.SetLabel(text) … … 2113 2117 if self.multi_factor == None: 2114 2118 self.multi_factor = 0 2119 form_factor = form_factor(int(self.multi_factor)) 2115 2120 self.multifactorbox.SetSelection(m_id) 2116 2121 # Check len of the text1 and max_multiplicity … … 2126 2131 else: 2127 2132 self.sld_axes = "" 2133 2128 2134 else: 2129 2135 self._hide_multfactor_combobox() 2130 2136 self.show_sld_button.Hide() 2137 form_factor = form_factor() 2131 2138 self.multi_factor = None 2132 2139 else: … … 2140 2147 if struct_factor != None: 2141 2148 from sas.sascalc.fit.MultiplicationModel import MultiplicationModel 2142 self.model = MultiplicationModel(form_factor(self.multi_factor), 2143 struct_factor()) 2149 self.model = MultiplicationModel(form_factor, struct_factor()) 2144 2150 # multifunctional form factor 2145 2151 if len(form_factor.non_fittable) > 0: 2146 2152 self.temp_multi_functional = True 2147 elif form_factor != None:2148 self.model = form_factor(self.multi_factor)2149 2153 else: 2150 self.model = None 2151 return 2152 2154 if form_factor != None: 2155 self.model = form_factor 2156 else: 2157 self.model = None 2158 return self.model 2153 2159 # check if model has magnetic parameters 2154 2160 if len(self.model.magnetic_params) > 0: … … 2280 2286 parameter's error of fit, 2281 2287 parameter's minimum value, 2282 par ameter's maximum value ,2288 parrameter's maximum value , 2283 2289 parameter's units] 2284 2290 """ -
src/sas/sasgui/perspectives/fitting/fitpage.py
rcb4ef58 rf27dd1e 10 10 import math 11 11 import time 12 13 from sasmodels.weights import MODELS as POLYDISPERSITY_MODELS14 15 12 from sas.sasgui.guiframe.events import StatusEvent 16 13 from sas.sasgui.guiframe.events import NewPlotEvent … … 624 621 model_disp = wx.StaticText(self, wx.ID_ANY, 'Function') 625 622 CHECK_STATE = self.cb1.GetValue() 623 #import sas.models.dispersion_models 624 #self.polydisp = sas.models.dispersion_models.models 625 import sasmodels.weights 626 self.polydisp = sasmodels.weights.models 626 627 627 628 ix = 0 … … 783 784 disp_box = wx.ComboBox(self, wx.ID_ANY, size=(65, -1), 784 785 style=wx.CB_READONLY, name='%s' % name1) 785 for key, value in POLYDISPERSITY_MODELS.iteritems():786 for key, value in self.polydisp.iteritems(): 786 787 name_disp = str(key) 787 788 disp_box.Append(name_disp, value) … … 947 948 disp_box = wx.ComboBox(self, wx.ID_ANY, size=(65, -1), 948 949 style=wx.CB_READONLY, name='%s' % name1) 949 for key, value in POLYDISPERSITY_MODELS.iteritems():950 for key, value in self.polydisp.iteritems(): 950 951 name_disp = str(key) 951 952 disp_box.Append(name_disp, value) -
src/sas/sasgui/perspectives/fitting/fitpanel.py
r05228b0 rf60251f 17 17 import models 18 18 _BOX_WIDTH = 80 19 19 20 20 21 class FitPanel(nb, PanelBase): … … 153 154 """ 154 155 """ 156 from bumps.options import FIT_CONFIG 157 current = FIT_CONFIG.selected_name 158 self.parent.SetTitle(self.window_name + " - Active Fitting Optimizer: " + current) 155 159 pos = self.GetSelection() 156 160 if pos != -1: -
src/sas/sasgui/perspectives/fitting/fitting.py
r243fbc0 r86b049b 56 56 ON_MAC = True 57 57 58 import bumps.options 59 from bumps.gui.fit_dialog import show_fit_config 60 try: 61 from bumps.gui.fit_dialog import EVT_FITTER_CHANGED 62 except ImportError: 63 # CRUFT: bumps 0.7.5.8 and below 64 EVT_FITTER_CHANGED = None # type: wx.PyCommandEvent 58 65 59 66 60 class Plugin(PluginBase): … … 507 501 self.parent.Bind(EVT_SLICER_PANEL, self._on_slicer_event) 508 502 self.parent.Bind(EVT_SLICER_PARS_UPDATE, self._onEVT_SLICER_PANEL) 509 510 # CRUFT: EVT_FITTER_CHANGED is not None for bumps 0.7.5.9 and above511 if EVT_FITTER_CHANGED is not None:512 self.parent.Bind(EVT_FITTER_CHANGED, self.on_fitter_changed)513 self._set_fitter_label(bumps.options.FIT_CONFIG)514 515 503 #self.parent._mgr.Bind(wx.aui.EVT_AUI_PANE_CLOSE,self._onclearslicer) 516 504 #Create reader when fitting panel are created … … 775 763 Open the bumps options panel. 776 764 """ 777 show_fit_config(self.parent, help=self.on_help) 778 779 def on_fitter_changed(self, event): 780 self._set_fitter_label(event.config) 781 782 def _set_fitter_label(self, config): 783 self.fit_panel.parent.SetTitle(self.fit_panel.window_name 784 + " - Active Fitting Optimizer: " 785 + config.selected_name) 765 try: 766 from bumps.gui.fit_dialog import show_fit_config 767 show_fit_config(self.parent, help=self.on_help) 768 except ImportError: 769 # CRUFT: Bumps 0.7.5.6 and earlier do not have the help button 770 from bumps.gui.fit_dialog import OpenFitOptions 771 OpenFitOptions() 786 772 787 773 def on_help(self, algorithm_id): -
src/sas/sasgui/perspectives/fitting/models.py
rcb4ef58 rdcdca68 296 296 #Build list automagically from sasmodels package 297 297 for model in load_standard_models(): 298 self.model_dictionary[model. name] = model299 if model. is_structure_factor:298 self.model_dictionary[model._model_info['name']] = model 299 if model._model_info['structure_factor'] == True: 300 300 self.struct_list.append(model) 301 if model.is_form_factor: 302 self.multiplication_factor.append(model) 303 if model.is_multiplicity_model: 301 if model._model_info['variant_info'] is not None: 304 302 self.multi_func_list.append(model) 305 303 else: 306 self.model_name_list.append(model.name) 304 self.model_name_list.append(model._model_info['name']) 305 if model._model_info['ER'] is not None: 306 self.multiplication_factor.append(model) 307 307 308 308 #Looking for plugins … … 387 387 Get the multifunctional models 388 388 """ 389 items = [item for item in self.plugins if item.is_multiplicity_model] 390 self.multi_func_list = items 389 for item in self.plugins: 390 try: 391 # check the multiplicity if any 392 if item.multiplicity_info[0] > 1: 393 self.multi_func_list.append(item) 394 except: 395 # pass to other items 396 pass 391 397 392 398 def get_model_list(self): -
src/sas/sasgui/plottools/PlotPanel.py
r16b769b rd85c194 1994 1994 """ 1995 1995 try: 1996 self.toolbar.copy_figure( self.canvas)1996 self.toolbar.copy_figure() 1997 1997 except: 1998 1998 print "Error in copy Image"
Note: See TracChangeset
for help on using the changeset viewer.