Changeset 706bb4e in sasview for src/sas/sasgui/guiframe/local_perspectives
- Timestamp:
- Sep 18, 2017 10:20:29 AM (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:
- 60a7820
- Parents:
- 460d3a1 (diff), cfd27dd (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/guiframe/local_perspectives
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/plotting.py
r235f514 r2d9526d 14 14 import wx 15 15 import sys 16 from copy import deepcopy 16 17 from sas.sasgui.guiframe.events import EVT_NEW_PLOT 17 18 from sas.sasgui.guiframe.events import EVT_PLOT_QRANGE … … 275 276 action_check = True 276 277 else: 278 if action_string == 'update': 279 # Update all existing plots of data with this ID 280 for data in event.plots: 281 for panel in self.plot_panels.values(): 282 if data.id in panel.plots.keys(): 283 plot_exists = True 284 # Pass each panel it's own copy of the data 285 # that's being updated, otherwise things like 286 # colour and line thickness are unintentionally 287 # synced across panels 288 self.update_panel(deepcopy(data), panel) 289 return 290 277 291 group_id = event.group_id 278 if group_id in self.plot_panels .keys():292 if group_id in self.plot_panels: 279 293 #remove data from panel 280 294 if action_string == 'remove': -
src/sas/sasgui/guiframe/local_perspectives/data_loader/data_loader.py
rdcb91cf r759a8ab 12 12 from sas.sascalc.dataloader.loader import Loader 13 13 from sas.sascalc.dataloader.loader_exceptions import NoKnownLoaderException 14 15 from sas.sasgui import get_local_config 14 16 from sas.sasgui.guiframe.plugin_base import PluginBase 15 17 from sas.sasgui.guiframe.events import StatusEvent 16 18 from sas.sasgui.guiframe.gui_style import GUIFRAME 17 19 from sas.sasgui.guiframe.gui_manager import DEFAULT_OPEN_FOLDER 18 try: 19 # Try to find a local config 20 import imp 21 path = os.getcwd() 22 if(os.path.isfile("%s/%s.py" % (path, 'local_config'))) or \ 23 (os.path.isfile("%s/%s.pyc" % (path, 'local_config'))): 24 fObj, path, descr = imp.find_module('local_config', [path]) 25 config = imp.load_module('local_config', fObj, path, descr) 26 else: 27 # Try simply importing local_config 28 import local_config as config 29 except: 30 # Didn't find local config, load the default 31 import sas.sasgui.guiframe.config as config 32 33 if config is None: 34 import sas.sasgui.guiframe.config as config 35 36 20 21 config = get_local_config() 37 22 extension_list = [] 38 23 if config.APPLICATION_STATE_EXTENSION is not None:
Note: See TracChangeset
for help on using the changeset viewer.