Ignore:
Timestamp:
Feb 27, 2009 10:18:12 AM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
e9e914f
Parents:
85e94e7
Message:

small bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    r51d47b5 rf3113c9  
    1 import os,os.path, re 
     1#import os,os.path, re 
    22import sys, wx, logging 
    33import string, numpy, math 
     
    1313from fitpanel import FitPanel 
    1414from fit_thread import FitThread 
    15 import models,modelpage 
     15import models#,modelpage 
    1616import fitpage1D 
    17 import park 
     17#import park 
    1818DEFAULT_BEAM = 0.005 
    1919DEFAULT_QMIN = 0.0 
     
    4747        self.standalone=True 
    4848        ## Fit engine 
    49         self._fit_engine = 'scipy' 
     49        self._fit_engine = 'park' 
    5050        self.enable_model2D=False 
    5151        # list of selcted data 
     
    7676        #Set park engine 
    7777        id3 = wx.NewId() 
    78         self.menu1.AppendCheckItem(id3, "park")  
     78        self.menu1.AppendCheckItem(id3, "scipy")  
    7979        wx.EVT_MENU(owner, id3, self._onset_engine) 
    8080         
     
    427427    def stop_fit(self): 
    428428        if self.calc_thread != None and self.calc_thread.isrunning(): 
    429                      
    430                     self.calc_thread.interrupt() 
    431                     self.calc_thread.stop() 
    432                     wx.PostEvent(self.parent, StatusEvent(status="Fitting  \ 
    433         is cancelled" , type="stop")) 
     429            #self.calc_thread.interrupt() 
     430            self.calc_thread.stop() 
     431            wx.PostEvent(self.parent, StatusEvent(status="Fitting  \ 
     432is cancelled" , type="stop")) 
    434433    def _on_single_fit(self,id=None,qmin=None, qmax=None,ymin=None, ymax=None,xmin=None,xmax=None): 
    435434        """  
Note: See TracChangeset for help on using the changeset viewer.