Changeset 5582a9f1 in sasview
- Timestamp:
- Sep 17, 2009 3:00:24 PM (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:
- d4bb639
- Parents:
- 6ced1cc
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r904168e1 r5582a9f1 78 78 self.num_points_def = 50 79 79 ## Q range 80 self.qmin_x= self.qmin_def81 self.qmax_x= self.qmax_def82 self.num_points= self.num_points_def80 self.qmin_x= 0.001 81 self.qmax_x= 0.13 82 self.num_points= 50 83 83 84 84 ## Create memento to save the current state … … 647 647 self.model= state.model 648 648 self.data = state.data 649 self.smearer= state.smearer 649 if self.data !=None: 650 from DataLoader.qsmearing import smear_selection 651 self.smearer= smear_selection( self.data ) 650 652 self.enable2D= state.enable2D 651 653 … … 698 700 699 701 self._set_dipers_Param(event=None) 700 701 #self.disp_cb_dict = {} 702 #for k,v in self.state.disp_cb_dict.iteritems(): 703 # self.disp_cb_dict = copy.deepcopy(state.disp_cb_dict) 704 # self.state.disp_cb_dict = copy.deepcopy(state.disp_cb_dict) 705 702 706 703 if name=="ArrayDispersion": 707 704 … … 733 730 self.disp_cb_dict = copy.deepcopy(state.disp_cb_dict) 734 731 self.state.disp_cb_dict = copy.deepcopy(state.disp_cb_dict) 735 736 #self._disp_obj_dict={} 737 #for k , v in self.state._disp_obj_dict.iteritems(): 738 # self._disp_obj_dict[k]=v 739 732 740 733 ##plotting range restore 741 734 self._reset_plotting_range(state) … … 745 738 self.enable_smearer.SetValue(state.enable_smearer) 746 739 self.disable_smearer.SetValue(state.disable_smearer) 740 self.onSmear(event=None) 747 741 self.tcChi.SetLabel(str( state.tcChi)) 748 742 self.sizer5.Layout() 749 743 self.Layout() 750 744 self.Refresh() 751 #self.compute_chisqr(smearer= self.smearer)752 #self._draw_model()745 746 753 747 ## reset state of checkbox,textcrtl and dispersity parameters value 754 748 self._reset_parameters_state(self.fittable_param,state.fittable_param) … … 760 754 ## reset context menu items 761 755 self._reset_context_menu() 762 763 #self._reset_dispersity() 764 #self._set_dipers_Param(event=None) #to bo removed //resets disper para value 765 766 #self.disp_cb_dict = {} 767 #for k,v in self.state.disp_cb_dict.iteritems(): 768 #self.disp_cb_dict = copy.deepcopy(state.disp_cb_dict) 769 #self.state.disp_cb_dict = copy.deepcopy(state.disp_cb_dict) 770 771 756 772 757 ## set the value of the current state to the state given as parameter 773 758 self.state = state.clone() … … 1685 1670 1686 1671 1672 sizer.Add((5,5)) 1673 sizer.Add(wx.StaticText(self, -1, 'Min')) 1674 sizer.Add(wx.StaticText(self, -1, 'Max')) 1675 sizer.Add(wx.StaticText(self, -1, 'Q range')) 1687 1676 1688 1677 sizer.Add(self.qmin) -
sansview/perspectives/fitting/fitpage.py
r920a6e5 r5582a9f1 922 922 ##Calculate chi2 923 923 self.compute_chisqr(smearer= temp_smearer) 924 ## save the state enable smearing 925 self.state.smearer= temp_smearer 926 #self.save_current_state() 927 924 925 self.state.enable_smearer= self.enable_smearer.GetValue() 926 self.state.disable_smearer=self.disable_smearer.GetValue() 928 927 929 928 def complete_chisqr(self, output, elapsed=None): … … 941 940 ## post state to fit panel 942 941 self.state.tcChi =output 943 #event = PageInfoEvent(page = self) 944 #wx.PostEvent(self.parent, event) 942 945 943 except: 946 944 pass
Note: See TracChangeset
for help on using the changeset viewer.