Ignore:
Timestamp:
Oct 27, 2017 6:49:35 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:
0849aec
Parents:
895e7359
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
    rb0b09b9 r99ea1b0  
    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.