Changeset 1157
- Timestamp:
- 08/21/06 16:27:55 (18 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1153 r1157 454 454 maxys.append(ma.maximum(y)) 455 455 peak = max(maxys) 456 self._plotter.vline_with_label(freq, peak, linecat.get_name(row), 457 location=loc, rotate=rotate) 456 self._plotter.vline_with_label(freq, peak, 457 linecat.get_name(row), 458 location=loc, rotate=rotate) 458 459 # self._plotter.release() 459 460 self._plotter.show(hardrefresh=False) -
trunk/python/scantable.py
r1153 r1157 736 736 """ 737 737 varlist = vars() 738 739 t = type(freqs)738 from asap import linecatalog 739 # simple value 740 740 if isinstance(freqs, int) or isinstance(freqs, float): 741 741 self._setrestfreqs(freqs, "",unit) 742 # list of values 742 743 elif isinstance(freqs, list) or isinstance(freqs, tuple): 744 # list values are scalars 743 745 if isinstance(freqs[-1], int) or isinstance(freqs[-1], float): 744 746 sel = selector() … … 749 751 self._setrestfreqs(freqs[i], "",unit) 750 752 self._setselection(savesel) 751 elif isinstance(freqs[-1], str): 752 # not yet implemented 753 pass 753 # list values are tuples, (value, name) 754 elif isinstance(freqs[-1], dict): 755 sel = selector() 756 savesel = self._getselection() 757 for i in xrange(len(freqs)): 758 sel.set_ifs([i]) 759 self._setrestfreqs(freqs[i]["value"], 760 freqs[i]["name"], "MHz") 761 self._setselection(sel) 762 self._setselection(savesel) 763 # freqs are to be taken from a linecatalog 754 764 elif isinstance(freqs, linecatalog): 755 765 sel = selector()
Note:
See TracChangeset
for help on using the changeset viewer.