示例#1
0
def griddata(*args, **kwargs):
    """Wrapper function to avoid annoying griddata errors"""
    try:
        return mlab_griddata(*args, **kwargs)
    except RuntimeError:
        kwargs['interp'] = 'linear'
        return mlab_griddata(*args, **kwargs)
示例#2
0
def griddata(*args, **kwargs):
    """Wrapper function to avoid annoying griddata errors"""
    try:
        return mlab_griddata(*args, **kwargs)
    except RuntimeError:
        kwargs['interp'] = 'linear'
        return mlab_griddata(*args, **kwargs)