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)