WrightTools.data.Data.heal

Data.heal(channel=0, method='linear', fill_value=nan, verbose=True)[source]

Remove nans from channel using interpolation.

Parameters:
  • channel (int or str (optional)) – Channel to heal. Default is 0.
  • method ({'linear', 'nearest', 'cubic'} (optional)) – The interpolation method. Note that cubic interpolation is only possible for 1D and 2D data. See griddata for more information. Default is linear.
  • fill_value (number-like (optional)) – The value written to pixels that cannot be filled by interpolation. Default is nan.
  • verbose (bool (optional)) – Toggle talkback. Default is True.

Note

Healing may take several minutes for large datasets. Interpolation time goes as nearest, linear, then cubic.