Changeset 9706d88 in sasview
- Timestamp:
- Sep 22, 2017 12:21:37 PM (7 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- d3b0c77, 574adc7
- Parents:
- ab0b93f
- Location:
- src/sas
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/fit/models.py
r69363c7 r9706d88 95 95 path = os.path.join(os.path.expanduser("~"), '.sasview', PLUGIN_DIR) 96 96 97 # TODO: initializing ~/.sasview/plugin_models doesn't belong in sascalc97 # TODO: trigger initialization of plugins dir from installer or startup 98 98 # If the plugin directory doesn't exist, create it 99 99 if not os.path.isdir(path): 100 100 os.makedirs(path) 101 101 # TODO: should we be checking for new default models every time? 102 initialize_plugins_dir(path) 102 # TODO: restore support for default plugins 103 #initialize_plugins_dir(path) 103 104 return path 104 105 … … 106 107 def initialize_plugins_dir(path): 107 108 # TODO: There are no default plugins 109 # TODO: Default plugins directory is in sasgui, but models.py is in sascalc 108 110 # TODO: Move default plugins beside sample data files 109 111 # TODO: Should not look for defaults above the root of the sasview install -
src/sas/sasgui/perspectives/fitting/fitpage.py
r69363c7 r9706d88 1726 1726 and not self.temp_multi_functional: 1727 1727 return None 1728 print("_set_fun_box_list", self.model.name)1729 1728 # Get the func name list 1730 1729 list = self.model.fun_list -
src/sas/sasgui/perspectives/fitting/fitting.py
r69363c7 r9706d88 51 51 from sas.sasgui.perspectives.calculator.model_editor import TextDialog 52 52 from sas.sasgui.perspectives.calculator.model_editor import EditorWindow 53 from sas.sasgui.perspectives.calculator.pyconsole import PyConsole 53 54 54 55 from .fitting_widgets import DataDialog … … 242 243 Get the python editor panel 243 244 """ 244 from sas.sasgui.perspectives.calculator.pyconsole import PyConsole245 246 245 event_id = event.GetId() 247 246 label = self.edit_menu.GetLabel(event_id) … … 368 367 if model and new_model != model: 369 368 page._on_select_model(keep_pars=True) 370 if hasattr(page, 'structurebox'):369 if hasattr(page, "structurebox"): 371 370 selected_name = page.structurebox.GetStringSelection() 372 371 … … 1769 1768 @param unsmeared_error: data error, rescaled to unsmeared model 1770 1769 """ 1771 <<<<<<< HEAD1772 1773 =======1774 >>>>>>> master1775 1770 number_finite = np.count_nonzero(np.isfinite(y)) 1776 1771 np.nan_to_num(y)
Note: See TracChangeset
for help on using the changeset viewer.