Changeset acfff8b in sasview for park_integration


Ignore:
Timestamp:
May 22, 2011 10:49:16 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
247873a
Parents:
66141a0
Message:

made let minpack raise: this way is more stable than handle it by our fitengine

Location:
park_integration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • park_integration/AbstractFitEngine.py

    r1ab9dc1 racfff8b  
    474474                    self.curr_thread.isquit() 
    475475                except: 
    476                     msg = "Fitting Aborted...  Please ignore the '"  
    477                     msg += "Functor Error' recoded in the log file." 
     476                    msg = "Fitting: Terminated...       Note: Forcing to stop "  
     477                    msg += "fitting may cause a 'Functor error message' " 
     478                    msg += "being recorded in the log file....." 
    478479                    self.handler.error(msg) 
    479480                    raise 
  • park_integration/ScipyFitting.py

    r93de635d racfff8b  
    144144                                                    full_output=1, 
    145145                                                    warning=True) 
    146         except: 
    147             if hasattr(sys, 'last_type') and sys.last_type == FitAbort: 
     146        except KeyboardInterrupt: 
     147            msg = "Fitting: Terminated!!!" 
     148            handler.error(msg) 
     149            raise KeyboardInterrupt, msg #<= more stable 
     150            #less stable below 
     151            """ 
     152            if hasattr(sys, 'last_type') and sys.last_type == KeyboardInterrupt: 
    148153                if handler is not None: 
    149                     msg = "Fit Stop!" 
    150                     #self.handler.error(msg) 
     154                    msg = "Fitting: Terminated!!!" 
     155                    handler.error(msg) 
    151156                    result = handler.get_result() 
    152157                    return result 
    153158            else: 
    154159                raise  
    155         
     160            """ 
    156161        chisqr = functor.chisq() 
    157162        if cov_x is not None and numpy.isfinite(cov_x).all(): 
Note: See TracChangeset for help on using the changeset viewer.