Changeset 4b402a1 in sasview


Ignore:
Timestamp:
Apr 7, 2017 9:47:29 AM (8 months ago)
Author:
Tim Snow <tim.snow@…>
Branches:
master, ESS_GUI, ESS_GUI_Pr, ESS_GUI_cns, ESS_GUI_corf, ESS_GUI_py2_OLD, SVCC-1, SasView-664, docs, ticket-873, unittest-saveload
Children:
131791e
Parents:
d6353fb
Message:

PEP-8 Compliance

Tiding up code ready for the pull request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/basepage.py

    rd6353fb r4b402a1  
    245245        self.threadedDrawQueue = Queue() 
    246246 
    247         self.threadedDrawWorker = Thread(target = self._threaded_draw_worker, args = (self.threadedDrawQueue,)) 
     247        self.threadedDrawWorker = Thread(target = self._threaded_draw_worker, 
     248                                         args = (self.threadedDrawQueue,)) 
    248249        self.threadedDrawWorker.setDaemon(True) 
    249250        self.threadedDrawWorker.start() 
     
    17211722        while True: 
    17221723            # Check to see is a manager is running and a calc is running 
    1723             if ((self._manager.calc_1D is not None) and (self._manager.calc_1D.isrunning() == True)) or ((self._manager.calc_2D is not None) and (self._manager.calc_2D.isrunning() == True)): 
     1724            if ((self._manager.calc_1D is not None) and (self._manager.calc_1D.\ 
     1725                isrunning() == True)) or ((self._manager.calc_2D is not None)\ 
     1726                and (self._manager.calc_2D.isrunning() == True)): 
    17241727                # If a manager is running a calculation  
    17251728                # then trim the queue 
     
    17351738                inputVariables = threadedDrawQueue.get() 
    17361739                self._draw_model_after(inputVariables[0], inputVariables[1]) 
    1737                 wx.PostEvent(self._manager.parent, StatusEvent(status="Computation is in progress...", type = "progress")) 
     1740                wx.PostEvent(self._manager.parent, StatusEvent(status =  
     1741                            "Computation is in progress...", type = "progress")) 
    17381742                threadedDrawQueue.task_done() 
    17391743                print 'run'                 
Note: See TracChangeset for help on using the changeset viewer.