Changeset 77f6a8b in sasview for sansview/perspectives
- Timestamp:
- Oct 30, 2009 10:23:02 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:
- 425ef040
- Parents:
- da58fcc
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
racd0bda3 r77f6a8b 980 980 self.save_current_state() 981 981 982 self. _is_modified(is_modified = is_modified)982 self.is_modified = is_modified 983 983 984 def _is_modified(self , is_modified = False):984 def _is_modified(self): 985 985 """ 986 986 return to self._is_modified 987 987 """ 988 self.is_modified = is_modified989 988 return self.is_modified 990 989 … … 1462 1461 item=[cb state, name, value, "+/-", error of fit, min, max , units] 1463 1462 """ 1464 is_modified = modified1463 self.is_modified = modified 1465 1464 if len(list)==0: 1466 return is_modified1465 return self.is_modified 1467 1466 for item in list: 1468 1467 try: … … 1506 1505 if value != self.model.getParam(name): 1507 1506 self.model.setParam(name,value) 1508 is_modified = True1507 self.is_modified = True 1509 1508 1510 1509 except: … … 1513 1512 return 1514 1513 1515 return is_modified1514 return self.is_modified 1516 1515 1517 1516 -
sansview/perspectives/fitting/fitpage.py
r5f9a6b1 r77f6a8b 707 707 self._onparamEnter_helper() 708 708 709 self._is_modified() 710 if self._is_modified == True: 711 ##compute chisqr for range change 709 ##compute chisqr for range change 710 temp_smearer = None 711 if self.enable_smearer.GetValue(): 712 msg="" 713 temp_smearer= self.smearer 714 ##Calculate chi2 715 716 self.compute_chisqr(smearer= temp_smearer) 717 ## new state posted 718 if self.state_change: 719 #self._undo.Enable(True) 720 event = PageInfoEvent(page = self) 721 wx.PostEvent(self.parent, event) 722 self.state_change= False 723 724 725 def _onparamEnter(self,event): 726 """ 727 when enter value on panel redraw model according to changed 728 """ 729 tcrtl= event.GetEventObject() 730 731 if check_float(tcrtl): 732 self._onparamEnter_helper() 733 712 734 temp_smearer = None 713 735 if self.enable_smearer.GetValue(): 714 msg="" 715 temp_smearer= self.smearer 716 ##Calculate chi2 717 718 self.compute_chisqr(smearer= temp_smearer) 736 temp_smearer= self.smearer 737 738 self.compute_chisqr(smearer= temp_smearer) 719 739 ## new state posted 720 740 if self.state_change: … … 723 743 wx.PostEvent(self.parent, event) 724 744 self.state_change= False 725 726 727 def _onparamEnter(self,event):728 """729 when enter value on panel redraw model according to changed730 """731 tcrtl= event.GetEventObject()732 733 if check_float(tcrtl):734 self._onparamEnter_helper()735 736 if self._is_modified == True:737 temp_smearer = None738 if self.enable_smearer.GetValue():739 temp_smearer= self.smearer740 741 self.compute_chisqr(smearer= temp_smearer)742 ## new state posted743 if self.state_change:744 #self._undo.Enable(True)745 event = PageInfoEvent(page = self)746 wx.PostEvent(self.parent, event)747 self.state_change= False748 745 else: 749 746 msg= "Cannot Plot :Must enter a number!!! " … … 772 769 self._onparamEnter_helper() 773 770 774 if self._is_modified == True: 775 ## new state posted 776 if self.state_change: 777 #self._undo.Enable(True) 778 event = PageInfoEvent(page = self) 779 wx.PostEvent(self.parent, event) 780 self.state_change= False 771 ## new state posted 772 if self.state_change: 773 #self._undo.Enable(True) 774 event = PageInfoEvent(page = self) 775 wx.PostEvent(self.parent, event) 776 self.state_change= False 781 777 782 778
Note: See TracChangeset
for help on using the changeset viewer.