Changeset 1561 for tags


Ignore:
Timestamp:
04/07/09 12:04:32 (16 years ago)
Author:
Malte Marquarding
Message:

fix for numpy >= 1.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/asap2.3.1/python/asaplotbase.py

    r1535 r1561  
    166166        y2 = range(l2)
    167167        m2 = range(l2)
    168         ymsk = y.raw_mask()
    169         ydat = y.raw_data()
     168        ymsk = None
     169        ydat = None
     170        if hasattr(y, "raw_mask"):
     171            # numpy < 1.1
     172            ymsk = y.raw_mask()
     173            ydat = y.raw_data()
     174        else:
     175            ymsk = y.mask
     176            ydat = y.data
    170177        for i in range(l2):
    171178            x2[i] = x[i/2]
Note: See TracChangeset for help on using the changeset viewer.