Changeset f6aee42 in sasview
- Timestamp:
- Jun 20, 2011 7:06:16 PM (13 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:
- 9ade6ad
- Parents:
- 00ea2a7
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter1D.py
r4520830 rf6aee42 142 142 # It was found that wx >= 2.9.3 sends an event even if no size changed. 143 143 # So manually recode the size (=x_size) and compare here. 144 """ 144 145 if self.x_size != None: 145 146 if self.x_size == self.GetSize(): … … 148 149 return 149 150 self.x_size = self.GetSize() 151 """ 150 152 # Ready for another event 151 153 # Do not remove this Skip. Otherwise it will get runtime error on wx>=2.9. -
sansview/perspectives/fitting/fitpage.py
reb63b76 rf6aee42 1619 1619 else: 1620 1620 self.enable_smearer.Enable() 1621 1621 1622 def _mac_sleep(self, sec=0.2): 1623 """ 1624 Give sleep to MAC 1625 """ 1626 if self.is_mac: 1627 time.sleep(sec) 1628 1622 1629 def get_view_mode(self): 1623 1630 """ … … 1930 1937 self.Layout() 1931 1938 self.Refresh() 1932 #time.sleep(0.1)1939 self._mac_sleep(0.1) 1933 1940 #plot model ( when drawing, do not update chisqr value again) 1934 1941 self._draw_model(update_chisqr=False) -
sansview/perspectives/fitting/fitting.py
r309a1f0 rf6aee42 50 50 (PageInfoEvent, EVT_PAGE_INFO) = wx.lib.newevent.NewEvent() 51 51 52 52 if sys.platform.count("darwin")==0: 53 ON_MAC = False 54 else: 55 ON_MAC = True 53 56 54 57 class Plugin(PluginBase): … … 513 516 enable1D=enable1D, enable2D=enable2D, 514 517 qmin=qmin, qmax=qmax) 515 #time.sleep(0.2) 516 518 self._mac_sleep(0.2) 519 520 def _mac_sleep(self, sec=0.2): 521 """ 522 Give sleep to MAC 523 """ 524 if ON_MAC: 525 time.sleep(sec) 526 517 527 def draw_model(self, model, page_id, data=None, smearer=None, 518 528 enable1D=True, enable2D=False, … … 642 652 improvement_delta=0.1) 643 653 644 #time.sleep(0.2)654 self._mac_sleep(0.2) 645 655 ## perform single fit 646 656 … … 663 673 664 674 self.fit_thread_list[current_page_id] = calc_fit 665 #time.sleep(0.3)675 self._mac_sleep(0.2) 666 676 667 677 #self.ready_fit(calc_fit=calc_fit) … … 913 923 914 924 """ 925 self._mac_sleep(0.2) 915 926 if page_id[0] in self.fit_thread_list.keys(): 916 927 del self.fit_thread_list[page_id[0]] … … 984 995 page_id = [] 985 996 ## fit more than 1 model at the same time 986 #time.sleep(0.2)997 self._mac_sleep(0.2) 987 998 try: 988 999 msg = "" -
sansview/perspectives/fitting/model_thread.py
r4754192 rf6aee42 21 21 updatefn = None, 22 22 update_chisqr=True, 23 yieldtime = 0.0 1,24 worktime = 0.0 123 yieldtime = 0.04, 24 worktime = 0.04 25 25 ): 26 26 CalcThread.__init__(self,completefn,
Note: See TracChangeset
for help on using the changeset viewer.