inrange

typhon.geodesy.inrange(x, minx, maxx, exclude='none', text=None)[source]

Test if x is within given bounds.

Parameters:
  • x – Variable to test.

  • minx – Lower boundary.

  • maxx – Upper boundary.

  • exclude (str) – Exclude boundaries. Possible values are: ‘none’, ‘lower’, ‘upper’ and ‘both’

  • text (str) – Addiitional warning text.

Raises:

Exception – If value is out of bounds.