Changeset 2687 for trunk/python


Ignore:
Timestamp:
11/17/12 02:00:38 (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: from asap.scantable import is_scantable

is_scantable('<any CASA image>')
# if it return False the bug is fixed

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Fixed a bug in is_scantable() that the function recognizes
CASA image as Scantable.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2672 r2687  
    4545        l=f.readline()
    4646        f.close()
    47         #if ( l.find('Scantable') != -1 ):
    48         if ( l.find('Measurement Set') == -1 ):
     47        if ( l.find('Scantable') != -1 ):
     48            return True
     49        elif ( l.find('Measurement Set') == -1 and
     50               l.find('Image') == -1 ):
    4951            return True
    5052        else:
Note: See TracChangeset for help on using the changeset viewer.