Changeset 2987 for trunk/python
- Timestamp:
- 08/20/14 16:35:38 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2984 r2987 2405 2405 if smode == 'r': 2406 2406 minidx = 0 2407 maxidx = self.nrow() 2407 maxidx = self.nrow()-1 2408 2408 else: 2409 2409 idx = getattr(self,"get"+mode+"nos")() … … 2425 2425 if idxlist.index(idxlist[i]) < i: 2426 2426 idxlist.pop(i) 2427 2428 # remove elements outside range [minidx, maxidx] for smode='r' 2429 if smode == 'r': 2430 for i in reversed(xrange(len(idxlist))): 2431 if (idxlist[i] < minidx) or (idxlist[i] > maxidx): 2432 idxlist.pop(i) 2433 2427 2434 msg = "Selected %s: %s" % (mode.upper()+"NO", str(idxlist)) 2428 2435 asaplog.push(msg)
Note:
See TracChangeset
for help on using the changeset viewer.