Changeset 847091f in sasview for sansview/perspectives
- Timestamp:
- Apr 16, 2009 12:01:36 PM (16 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:
- 3370922
- Parents:
- 997131a
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r997131a r847091f 50 50 if self.data !=None: 51 51 self.smearer = smear_selection( self.data ) 52 52 if self.smearer ==None: 53 self.enable_smearer.Disable() 54 self.disable_smearer.Disable() 55 53 56 ## to update the panel according to the fit engine type selected 54 57 self.Bind(EVT_FITTER_TYPE,self._on_engine_change) … … 602 605 603 606 604 605 607 def onSmear(self, event): 606 608 """ … … 631 633 ## save the state enable smearing 632 634 self.save_current_state() 635 636 633 637 634 638 -
sansview/perspectives/fitting/fitting.py
r997131a r847091f 825 825 Update the output of plotting model 1D 826 826 """ 827 self.calc_thread.ready(1) 827 wx.PostEvent(self.parent, StatusEvent(status="Plot \ 828 #updating ... ",type="update")) 829 self.calc_thread.ready(0.01) 828 830 829 831 def _fill_default_model2D(self, theory, qmax,qstep, qmin=None): … … 907 909 Complete plotting 1D data 908 910 """ 911 909 912 try: 910 913 … … 931 934 wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 932 935 title= str(title))) 933 936 msg = "Plot 1D complete !" 937 wx.PostEvent( self.parent, StatusEvent( status= msg , type="stop" )) 934 938 except: 935 939 msg= " Error occurred when drawing %s Model 1D: "%new_plot.name 936 940 msg+= " %s"%sys.exc_value 937 wx.PostEvent( self.parent, StatusEvent(status= msg ))941 wx.PostEvent( self.parent, StatusEvent(status= msg, type="stop" )) 938 942 return 939 943 … … 955 959 that can be plot. 956 960 """ 957 msg = "Calc complete !" 958 wx.PostEvent( self.parent, StatusEvent( status= msg , type="stop" )) 961 959 962 960 963 err_image = numpy.zeros(numpy.shape(image)) … … 983 986 wx.PostEvent(self.parent, NewPlotEvent(plot=theory, 984 987 title="Analytical model 2D ", reset=True )) 988 msg = "Plot 2D complete !" 989 wx.PostEvent( self.parent, StatusEvent( status= msg , type="stop" )) 985 990 986 991 def _on_data_error(self, event):
Note: See TracChangeset
for help on using the changeset viewer.