Exemple #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)
Exemple #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)