Changeset f3113c9 in sasview for sansview/perspectives/fitting/fitting.py
- Timestamp:
- Feb 27, 2009 10:18:12 AM (15 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r51d47b5 rf3113c9 1 import os,os.path, re1 #import os,os.path, re 2 2 import sys, wx, logging 3 3 import string, numpy, math … … 13 13 from fitpanel import FitPanel 14 14 from fit_thread import FitThread 15 import models ,modelpage15 import models#,modelpage 16 16 import fitpage1D 17 import park17 #import park 18 18 DEFAULT_BEAM = 0.005 19 19 DEFAULT_QMIN = 0.0 … … 47 47 self.standalone=True 48 48 ## Fit engine 49 self._fit_engine = ' scipy'49 self._fit_engine = 'park' 50 50 self.enable_model2D=False 51 51 # list of selcted data … … 76 76 #Set park engine 77 77 id3 = wx.NewId() 78 self.menu1.AppendCheckItem(id3, " park")78 self.menu1.AppendCheckItem(id3, "scipy") 79 79 wx.EVT_MENU(owner, id3, self._onset_engine) 80 80 … … 427 427 def stop_fit(self): 428 428 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 \ 432 is cancelled" , type="stop")) 434 433 def _on_single_fit(self,id=None,qmin=None, qmax=None,ymin=None, ymax=None,xmin=None,xmax=None): 435 434 """
Note: See TracChangeset
for help on using the changeset viewer.