Changeset d00475d in sasview for src/sas/qtgui/Utilities
- Timestamp:
- Oct 26, 2018 6:44:15 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- b1b71ad
- Parents:
- a3c59503 (diff), 75906a1 (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/qtgui/Utilities
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/CategoryInstaller.py
rc889a3e r75906a1 26 26 def __init__(self): 27 27 """ initialization """ 28 29 @staticmethod30 def _get_installed_model_dir():31 """32 returns the dir where installed_models.txt should be33 """34 import sas.sascalc.dataloader.readers35 return sas.sascalc.dataloader.readers.get_data_path()36 37 @staticmethod38 def _get_models_py_dir():39 """40 returns the dir where models.py should be41 """42 import sas.sasgui.perspectives.fitting.models43 return sas.sasgui.perspectives.fitting.models.get_model_python_path()44 45 @staticmethod46 def _get_default_cat_file_dir():47 """48 returns the dir where default_cat.j should be49 """50 # The default categories file is usually found with the code, except51 # when deploying using py2app (it will be in Contents/Resources), or52 # py2exe (it will be in the exec dir).53 import sas.sasview54 cat_file = "default_categories.json"55 56 possible_cat_file_paths = [57 os.path.join(os.path.split(sas.sasview.__file__)[0], cat_file), # Source58 os.path.join(os.path.dirname(sys.executable), '..', 'Resources', cat_file), # Mac59 os.path.join(os.path.dirname(sys.executable), cat_file) # Windows60 ]61 62 for path in possible_cat_file_paths:63 if os.path.isfile(path):64 return os.path.dirname(path)65 66 raise RuntimeError('CategoryInstaller: Could not find folder containing default categories')67 28 68 29 @staticmethod -
src/sas/qtgui/Utilities/GridPanel.py
ra4b9b7a r75906a1 491 491 """ 492 492 location = GuiUtils.HELP_DIRECTORY_LOCATION 493 url = "/user/ sasgui/perspectives/pr/pr_help.html#batch-pr-mode"493 url = "/user/qtgui/Perspectives/Fitting/fitting_help.html#batch-fit-mode" 494 494 try: 495 495 webbrowser.open('file://' + os.path.realpath(location + url)) -
src/sas/qtgui/Utilities/GuiUtils.py
r2eeda93 rd00475d 106 106 except ImportError: 107 107 pass 108 #logging.error("Error loading %s/%s: %s" % (path, confg_file, sys.exc_value))109 108 except ValueError: 110 109 print("Value error") … … 113 112 if fObj is not None: 114 113 fObj.close() 115 #logging.info("GuiManager loaded %s/%s" % (path, confg_file))116 114 return config_module 117 115 … … 294 292 changeDataExplorerTabSignal = QtCore.pyqtSignal(int) 295 293 296 def updateModelItemWithPlot(item, update_data, name="", checkbox_state=None): 294 # Plot fitting results (FittingWidget->GuiManager) 295 resultPlotUpdateSignal = QtCore.pyqtSignal(list) 296 297 297 """ 298 298 Adds a checkboxed row named "name" to QStandardItem
Note: See TracChangeset
for help on using the changeset viewer.