Ignore:
Timestamp:
Nov 9, 2017 8:41:56 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
4992ff2
Parents:
cee5c78
git-author:
Piotr Rozyczko <rozyczko@…> (10/27/17 08:49:35)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:56)
Message:

Update for unit tests and minor functionality quirks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    • Property mode changed from 100755 to 100644
    rb3e8629 r7fb471d  
    175175        load_thread = threads.deferToThread(self.readData, url) 
    176176        load_thread.addCallback(self.loadComplete) 
     177        load_thread.addErrback(self.loadFailed) 
    177178 
    178179    def loadFile(self, event=None): 
     
    221222            load_thread = threads.deferToThread(self.readProject, filename) 
    222223            load_thread.addCallback(self.readProjectComplete) 
     224            load_thread.addErrback(self.readProjectFailed) 
     225 
     226    def readProjectFailed(self, reason): 
     227        """ 
     228        """ 
     229        print("readProjectFailed FAILED: ", reason) 
     230        pass 
    223231 
    224232    def readProject(self, filename): 
     
    614622            return 
    615623 
    616         #if isinstance(paths, QtCore.QStringList): 
    617         #    paths = [str(f) for f in paths] 
    618  
    619624        if not isinstance(paths, list): 
    620625            paths = [paths] 
     
    992997        self.manager.add_data(data_list=output_data) 
    993998 
     999    def loadErrback(self, reason): 
     1000        print("File Load Failed with:\n", reason) 
     1001        pass 
     1002 
    9941003    def updateModel(self, data, p_file): 
    9951004        """ 
Note: See TracChangeset for help on using the changeset viewer.