Changeset 2751
- Timestamp:
- 01/30/13 13:42:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2713 r2751 2 2 3 3 import os 4 import re 4 5 import tempfile 5 6 import numpy … … 45 46 l=f.readline() 46 47 f.close() 47 if ( l.find('Scantable') != -1 ): 48 match_pattern = '^Type = Scantable *$' 49 unmatch_pattern = '^Type = (MeasurementSet|Image|ApplyTable) *$' 50 #if ( l.find('Scantable') != -1 ): 51 if re.match(match_pattern,l): 48 52 return True 49 elif ( l.find('Measurement Set') == -1 and 50 l.find('Image') == -1 ): 53 #elif ( l.find('Measurement Set') == -1 and 54 # l.find('Image') == -1): 55 elif re.match(unmatch_pattern,l) is None: 51 56 return True 52 57 else:
Note:
See TracChangeset
for help on using the changeset viewer.