Changeset 2753 for trunk


Ignore:
Timestamp:
01/31/13 13:00:04 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

More bug fix on is_scantable()


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2752 r2753  
    4646        l=f.readline()
    4747        f.close()
    48         match_pattern = '^Type = Scantable *$'
    49         unmatch_pattern = '^Type = (MeasurementSet|Image|ApplyTable) *$'
    50         #if ( l.find('Scantable') != -1 ):
     48        match_pattern = '^Type = (Scantable)? *$'
    5149        if re.match(match_pattern,l):
    52             return True
    53         #elif ( l.find('Measurement Set') == -1 and
    54         #       l.find('Image') == -1):
    55         elif re.match(unmatch_pattern,l):
    5650            return True
    5751        else:
     
    243237                    # Measurement Set
    244238                    opts={'ms': {}}
    245                     mskeys=['getpt','antenna']
     239                    mskeys=['getpt','antenna','freq_tolsr']
    246240                    for key in mskeys:
    247241                        if key in args.keys():
Note: See TracChangeset for help on using the changeset viewer.