Changeset 5251ec6 in sasview for src/sas/sasgui/perspectives/calculator/data_editor.py
- Timestamp:
- Oct 11, 2018 12:20:56 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
- Children:
- 98b9f32
- Parents:
- 67ed543
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/calculator/data_editor.py
r235f514 r5251ec6 7 7 from sas.sascalc.dataloader.loader import Loader 8 8 from sas.sascalc.dataloader.data_info import Data2D 9 from detector_editor import DetectorDialog10 from collimation_editor import CollimationDialog11 from console import ConsoleDialog12 9 13 10 from sas.sasgui.guiframe.events import StatusEvent 11 12 from .detector_editor import DetectorDialog 13 from .collimation_editor import CollimationDialog 14 from .console import ConsoleDialog 15 14 16 15 17 … … 397 399 if data is None: 398 400 return 399 from sample_editor import SampleDialog401 from .sample_editor import SampleDialog 400 402 dlg = SampleDialog(parent=self, sample=data.sample) 401 403 dlg.set_manager(self) … … 409 411 if data is None: 410 412 return 411 from source_editor import SourceDialog413 from .source_editor import SourceDialog 412 414 dlg = SourceDialog(parent=self, source=data.source) 413 415 dlg.set_manager(self) … … 426 428 wlist = '|'.join(cards) 427 429 428 dlg = wx.FileDialog(self, "Choose a file", location, "", wlist, wx. OPEN)430 dlg = wx.FileDialog(self, "Choose a file", location, "", wlist, wx.FD_OPEN) 429 431 if dlg.ShowModal() == wx.ID_OK: 430 432 path = dlg.GetPath() … … 527 529 try: 528 530 #Load data 529 from load_thread import DataReader531 from .load_thread import DataReader 530 532 ## If a thread is already started, stop it 531 533 if self.reader is not None and self.reader.isrunning(): … … 535 537 updatefn=None) 536 538 self.reader.queue() 537 except :538 msg = "Data Editor: %s" % (sys.exc_value)539 except Exception as exc: 540 msg = "Data Editor: %s" % exc 539 541 load_error(msg) 540 542 return
Note: See TracChangeset
for help on using the changeset viewer.