Changeset 2115 for trunk/python
- Timestamp:
- 04/07/11 15:16:58 (14 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/flagplotter.py
r2001 r2115 30 30 self._panelling = 'r' 31 31 self.set_stacking('scan') 32 self._ismodified = False 32 33 33 34 def _newcasabar(self): … … 94 95 # simply calls scantable.save 95 96 self._data.save(name,format,overwrite) 97 98 def set_data(self, scan, refresh=True): 99 if self._is_new_scan(scan): 100 self._ismodified = False 101 asapplotter.set_data(self, scan, refresh) 102 set_data.__doc__ = asapplotter.set_data.__doc__ 103 104 @asaplog_post_dec 105 def plot(self, scan=None): 106 if self._is_new_scan(scan): 107 self._ismodified = False 108 asapplotter.plot(self,scan) 109 plot.__doc__ = asapplotter.plot.__doc__ 110 111 def _is_new_scan(self,scan): 112 if isinstance(scan, scantable): 113 if self._data is not None: 114 if scan != self._data: 115 return True 116 else: 117 return True 118 return False -
trunk/python/flagtoolbar.py
r2066 r2115 343 343 asaplog.push(sout) 344 344 del sout 345 self.plotter._ismodified = True 345 346 self._clearup_selections(refresh=False) 346 347 self._plot_page(pagemode="current") … … 363 364 asaplog.push(sout) 364 365 del sout 366 self.plotter._ismodified = True 365 367 self._clearup_selections(refresh=False) 366 368 self._plot_page(pagemode="current")
Note:
See TracChangeset
for help on using the changeset viewer.