Ignore:
Timestamp:
Aug 28, 2014 9:42:48 AM (10 years ago)
Author:
pkienzle
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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
72c969b
Parents:
c915053 (diff), f4167637 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge from trunk to bumps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/perspectives/fitting/fitting.py

    rbf5e985 ra9807efa  
    19621962            if (self.calc_2D is not None) and self.calc_2D.isrunning(): 
    19631963                self.calc_2D.stop() 
     1964                ## stop just raises a flag to tell the thread to kill 
     1965                ## itself -- see the fix in Calc1D implemented to fix 
     1966                ## an actual problem.  Seems the fix should also go here 
     1967                ## and may be the cause of other noted instabilities 
     1968                ## 
     1969                ##    -PDB August 12, 2014  
     1970                while self.calc_2D.isrunning(): 
     1971                    time.sleep(0.1) 
    19641972            self.calc_2D = Calc2D(model=model, 
    19651973                                    data=data, 
     
    19992007            if (self.calc_1D is not None) and self.calc_1D.isrunning(): 
    20002008                self.calc_1D.stop() 
     2009                ## stop just raises the flag -- the thread is supposed to  
     2010                ## then kill itself but cannot.  Paul Kienzle came up with 
     2011                ## this fix to prevent threads from stepping on each other 
     2012                ## which was causing a simple custom model to crash Sasview. 
     2013                ## We still don't know why the fit sometimes lauched a second 
     2014                ## thread -- something which should also be investigated. 
     2015                ## The thread approach was implemented in order to be able 
     2016                ## to lauch a computation in a separate thread from the GUI so 
     2017                ## that the GUI can still respond to user input including 
     2018                ## a request to stop the computation. 
     2019                ## It seems thus that the whole thread approach used here 
     2020                ## May need rethinking   
     2021                ## 
     2022                ##    -PDB August 12, 2014                   
     2023                while self.calc_1D.isrunning(): 
     2024                    time.sleep(0.1) 
    20012025            self.calc_1D = Calc1D(data=data, 
    20022026                                  model=model, 
Note: See TracChangeset for help on using the changeset viewer.