Changeset 2933 for trunk/python
- Timestamp:
- 04/22/14 12:50:16 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2932 r2933 2146 2146 for spw in res.keys(): 2147 2147 if spw in valid_ifs: 2148 # remove duplicated ch ennal ranges2148 # remove duplicated channel ranges 2149 2149 for i in reversed(xrange(len(res[spw]))): 2150 2150 for j in xrange(i): 2151 if ((res[spw][i][0]-res[spw][j][1])*(res[spw][i][1]-res[spw][j][0]) <= 0): 2151 if ((res[spw][i][0]-res[spw][j][1])*(res[spw][i][1]-res[spw][j][0]) <= 0) or \ 2152 (min(abs(res[spw][i][0]-res[spw][j][1]),abs(res[spw][j][0]-res[spw][i][1])) == 1): 2152 2153 res[spw][j][0] = min(res[spw][i][0], res[spw][j][0]) 2153 2154 res[spw][j][1] = max(res[spw][i][1], res[spw][j][1])
Note:
See TracChangeset
for help on using the changeset viewer.