clip

openpnm.models.misc.clip(target, prop, xmax, xmin=0)[source]

Clips the given array within the supplied limits

Parameters
  • target (Base) – The object which this model is associated with. This controls the length of the calculated array, and also provides access to other necessary properties.

  • xmin (float) – Values below this limit will be replaced with xmin.

  • xmax (float) – Values above this limit will be replaced with xmax.