def comp(arr):
    '\n    returns the compressed version\n    of the input array if it is a\n    numpy MaskedArray\n    '
    try:
        return arr.compressed()
    except:
        return arr
returns the compressed version
of the input array if it is a
numpy MaskedArray
def comp(arr):
    '\n    returns the compressed version\n    of the input array if it is a\n    numpy MaskedArray\n    '
    try:
        return arr.compressed()
    except:
        return arr