Ignore:
Timestamp:
Nov 3, 2016 3:31:02 AM (8 years ago)
Author:
wojciech
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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
e0d9ed2
Parents:
20f07dbc
Message:

Adding comments to code

File:
1 edited

Legend:

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

    r20f07dbc rd99f008  
    864864                enable1D=enable1D, enable2D=enable2D, 
    865865                qmin=qmin, qmax=qmax, weight=weight) 
    866             #self._mac_sleep(0.2) 
    867             #Wojtek P. Adding here to prevent crushing Windows but it doesn't 
    868             # solve underlying issue 
     866            # Replacing self._mac_sleep(0.2) with time.sleep(0.2) to prevent 
     867            # _handle error on Windows. It fixes the bug but doesn't resolve 
     868            # underlying issue of calling this code twice (threading related) 
     869            # Wojtek P., Nov 3 2016 
    869870            time.sleep(0.2) 
    870871 
     
    19691970                ## May need rethinking   
    19701971                ## 
    1971                 ##    -PDB August 12, 2014                   
     1972                ##    -PDB August 12, 2014 
    19721973                while self.calc_1D.isrunning(): 
    19731974                    time.sleep(0.1) 
Note: See TracChangeset for help on using the changeset viewer.