Changeset 25427d9 in sasview for src/sas/sasgui/perspectives
- Timestamp:
- Mar 21, 2016 6:32:15 AM (9 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:
- cf92b1f, 5757bbe
- Parents:
- 1c0e3b0 (diff), bb0c836 (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. - Location:
- src/sas/sasgui/perspectives
- Files:
-
- 6 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/calculator/data_operator.py
rd85c194 re871a2d 634 634 """ 635 635 636 _TreeLocation = "user/perspectives/calculator/data_operator_help.html" 636 _TreeLocation = "user/sasgui/perspectives/calculator/" 637 _TreeLocation += "data_operator_help.html" 637 638 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 638 639 "Data Operation Help") -
src/sas/sasgui/perspectives/calculator/density_panel.py
rd85c194 r02b4d10 384 384 """ 385 385 386 _TreeLocation = "user/perspectives/calculator/density_calculator_help.html" 386 _TreeLocation = "user/sasgui/perspectives/calculator/" 387 _TreeLocation += "density_calculator_help.html" 387 388 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 388 389 "Density/Volume Calculator Help") -
src/sas/sasgui/perspectives/calculator/gen_scatter_panel.py
rd85c194 rd0248bd 913 913 """ 914 914 915 _TreeLocation = "user/perspectives/calculator/sas_calculator_help.html" 915 _TreeLocation = "user/sasgui/perspectives/calculator/" 916 _TreeLocation += "sas_calculator_help.html" 916 917 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 917 918 "General Scattering Calculator Help") -
src/sas/sasgui/perspectives/calculator/image_viewer.py
rd85c194 rd0248bd 149 149 """ 150 150 151 _TreeLocation = "user/perspectives/calculator/image_viewer_help.html" 151 _TreeLocation = "user/sasgui/perspectives/calculator/" 152 _TreeLocation += "image_viewer_help.html" 152 153 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 153 154 "Image Viewer Help") -
src/sas/sasgui/perspectives/calculator/kiessig_calculator_panel.py
rd85c194 rd0248bd 172 172 :param evt: Triggers on clicking the help button 173 173 """ 174 _TreeLocation = "user/perspectives/calculator/kiessig_calculator_help.html" 174 _TreeLocation = "user/sasgui/perspectives/calculator/" 175 _TreeLocation += "kiessig_calculator_help.html" 175 176 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 176 177 "Density/Volume Calculator Help") -
src/sas/sasgui/perspectives/calculator/model_editor.py
rec36e48 r5876f7e 417 417 """ 418 418 419 _TreeLocation = "user/ perspectives/fitting/fitting_help.html"419 _TreeLocation = "user/sasgui/perspectives/fitting/fitting_help.html" 420 420 _PageAnchor = "#sum-multi-p1-p2" 421 421 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, _PageAnchor, … … 1145 1145 """ 1146 1146 1147 _TreeLocation = "user/ perspectives/fitting/fitting_help.html"1147 _TreeLocation = "user/sasgui/perspectives/fitting/fitting_help.html" 1148 1148 _PageAnchor = "#custom-model-editor" 1149 1149 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, _PageAnchor, -
src/sas/sasgui/perspectives/calculator/resolution_calculator_panel.py
rd85c194 rd0248bd 641 641 """ 642 642 643 _TreeLocation = "user/perspectives/calculator/resolution_calculator_help.html" 643 _TreeLocation = "user/sasgui/perspectives/calculator/" 644 _TreeLocation += "resolution_calculator_help.html" 644 645 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 645 646 "Resolution Calculator Help") -
src/sas/sasgui/perspectives/calculator/sld_panel.py
rd85c194 rd0248bd 325 325 """ 326 326 327 _TreeLocation = "user/perspectives/calculator/sld_calculator_help.html" 327 _TreeLocation = "user/sasgui/perspectives/calculator/" 328 _TreeLocation += "sld_calculator_help.html" 328 329 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 329 330 "General Scattering Calculator Help") -
src/sas/sasgui/perspectives/calculator/slit_length_calculator_panel.py
rd85c194 rd0248bd 186 186 """ 187 187 188 _TreeLocation = "user/perspectives/calculator/slit_calculator_help.html" 188 _TreeLocation = "user/sasgui/perspectives/calculator/" 189 _TreeLocation += "slit_calculator_help.html" 189 190 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 190 191 "Slit Length Calculator Help") -
src/sas/sasgui/perspectives/fitting/__init__.py
rd85c194 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]))44 path = get_data_path(media="media")41 # p_path = os.path.join(path, 'plugin_models') 42 # for f in findall(p_path): 43 # data_files.append(('plugin_models', [f])) 44 # path = get_data_path(media="media") 45 45 for f in findall(path): 46 46 data_files.append(('media/fitting_media', [f])) -
src/sas/sasgui/perspectives/fitting/basepage.py
rbac3988 reb04d59 1895 1895 if mod_cat == custom_model: 1896 1896 for model in self.model_list_box[mod_cat]: 1897 str_m = str(model).split(".")[0] 1897 if 'sasmodels.sasview_model.' in str(model): 1898 str_m = model._model_info['id'] 1899 else: 1900 str_m = str(model).split(".")[0] 1898 1901 #self.model_box.Append(str_m) 1899 1902 m_list.append(self.model_dict[str_m]) … … 2861 2864 """ 2862 2865 2863 _TreeLocation = 'user/models/model_functions.html'2864 2866 if self.model != None: 2865 2867 name = self.formfactorbox.GetValue() 2866 _ PageAnchor = '#' + name.lower()2868 _TreeLocation = 'user/models/'+ name.lower()+'.html' 2867 2869 _doc_viewer = DocumentationWindow(self, wx.ID_ANY, _TreeLocation, 2868 _PageAnchor, name + " Help")2870 "", name + " Help") 2869 2871 else: 2872 _TreeLocation = 'user/index.html' 2870 2873 _doc_viewer = DocumentationWindow(self, wx.ID_ANY, _TreeLocation, 2871 2874 "", "General Model Help") … … 2939 2942 """ 2940 2943 2941 _TreeLocation = "user/ perspectives/fitting/mag_help.html"2944 _TreeLocation = "user/sasgui/perspectives/fitting/mag_help.html" 2942 2945 _doc_viewer = DocumentationWindow(self, wx.ID_ANY, _TreeLocation, "", 2943 2946 "Polarized Beam/Magnetc Help") … … 2985 2988 """ 2986 2989 2987 _TreeLocation = "user/ perspectives/fitting/pd_help.html"2990 _TreeLocation = "user/sasgui/perspectives/fitting/pd_help.html" 2988 2991 _PageAnchor = "" 2989 2992 _doc_viewer = DocumentationWindow(self, wx.ID_ANY, _TreeLocation, -
src/sas/sasgui/perspectives/fitting/fitpage.py
ra0b355b rf27dd1e 1081 1081 """ 1082 1082 1083 _TreeLocation = "user/ perspectives/fitting/fitting_help.html"1083 _TreeLocation = "user/sasgui/perspectives/fitting/fitting_help.html" 1084 1084 _doc_viewer = DocumentationWindow(self, wx.ID_ANY, _TreeLocation, "", 1085 1085 "General Fitting Help") … … 1100 1100 """ 1101 1101 1102 _TreeLocation = "user/ perspectives/fitting/sm_help.html"1102 _TreeLocation = "user/sasgui/perspectives/fitting/sm_help.html" 1103 1103 _doc_viewer = DocumentationWindow(self, wx.ID_ANY, _TreeLocation, "", 1104 1104 "Instrumental Resolution Smearing \ -
src/sas/sasgui/perspectives/fitting/fitting.py
raac161f1 r86b049b 299 299 self.new_model_frame.Show(True) 300 300 301 def load_plugin_models(self, event): 302 """ 303 Update of models in plugin_models folder 304 """ 305 event_id = event.GetId() 306 self.update_custom_combo() 307 301 308 def update_custom_combo(self): 302 309 """ … … 338 345 'Add a new model function') 339 346 wx.EVT_MENU(owner, wx_id, self.make_new_model) 347 340 348 wx_id = wx.NewId() 341 349 self.edit_model_menu.Append(wx_id, 'Sum|Multi(p1, p2)', 342 350 'Sum of two model functions') 343 351 wx.EVT_MENU(owner, wx_id, self.make_sum_model) 352 344 353 e_id = wx.NewId() 345 354 self.edit_menu = wx.Menu() … … 353 362 'Delete', self.delete_menu) 354 363 self.set_edit_menu_helper(owner, self.delete_custom_model) 364 365 wx_id = wx.NewId() 366 self.edit_model_menu.Append(wx_id, 'Load Models', 367 '(Re)Load all models present in user plugin_models folder') 368 wx.EVT_MENU(owner, wx_id, self.load_plugin_models) 355 369 356 370 def set_edit_menu_helper(self, owner=None, menu=None): … … 758 772 759 773 def on_help(self, algorithm_id): 760 _TreeLocation = "user/ perspectives/fitting/optimizer.html"774 _TreeLocation = "user/sasgui/perspectives/fitting/optimizer.html" 761 775 _anchor = "#fit-"+algorithm_id 762 776 DocumentationWindow(self.parent, wx.ID_ANY, _TreeLocation, _anchor, "Optimizer Help") -
src/sas/sasgui/perspectives/fitting/models.py
ra0b355b r9e531f2 17 17 # places it in the distribution. The Model1DPlugin class is used 18 18 # as the base class of plug-in models. 19 from sas. models.pluginmodel import Model1DPlugin20 from sas. models.BaseComponent import BaseComponent19 from sas.sascalc.fit.pluginmodel import Model1DPlugin 20 from sas.sascalc.calculator.BaseComponent import BaseComponent 21 21 from sas.sasgui.guiframe.CategoryInstaller import CategoryInstaller 22 22 from sasmodels import sasview_model,core … … 181 181 if toks[1] == '.py' and not toks[0] == '__init__': 182 182 name = toks[0] 183 184 183 path = [os.path.abspath(dir)] 185 184 file = None … … 197 196 sys.exc_info()[1]) 198 197 log(msg) 198 else: 199 filename = os.path.join(dir, item) 200 plugins[name] = sasview_model.make_class_from_file(filename) 201 199 202 except: 200 203 msg = "Error accessing Model" … … 211 214 msg = "Could not import model plugin: %s" % sys.exc_info()[1] 212 215 log(msg) 216 213 217 return plugins 214 218 … … 311 315 self.multiplication_factor.append(model) 312 316 313 314 317 #Looking for plugins 315 318 self.stored_plugins = self.findModels() … … 317 320 for name, plug in self.stored_plugins.iteritems(): 318 321 self.model_dictionary[name] = plug 319 322 320 323 self._get_multifunc_models() 321 324 -
src/sas/sasgui/perspectives/fitting/simfitpage.py
raac161f1 r4cafdff 499 499 :param evt: Triggers on clicking the help button 500 500 """ 501 _TreeLocation = "user/ perspectives/fitting/fitting_help.html"501 _TreeLocation = "user/sasgui/perspectives/fitting/fitting_help.html" 502 502 _PageAnchor = "#simultaneous-fit-mode" 503 503 _doc_viewer = DocumentationWindow(self, self.ID_DOC, _TreeLocation, -
src/sas/sasgui/perspectives/invariant/invariant_panel.py
rd85c194 rc12f9b4 1898 1898 """ 1899 1899 1900 _TreeLocation = "user/ perspectives/invariant/invariant_help.html"1900 _TreeLocation = "user/sasgui/perspectives/invariant/invariant_help.html" 1901 1901 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 1902 1902 "Invariant Help") -
src/sas/sasgui/perspectives/pr/inversion_panel.py
rd85c194 r5a58656 955 955 """ 956 956 957 _TreeLocation = "user/ perspectives/pr/pr_help.html"957 _TreeLocation = "user/sasgui/perspectives/pr/pr_help.html" 958 958 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 959 959 "P(r) Help")
Note: See TracChangeset
for help on using the changeset viewer.