sumnplot.checks.check_condition

sumnplot.checks.check_condition(condition, error_message_text)[source]

Check that condition (which evaluates to a bool) is True and raise a ValueError if not.

Parameters
  • condition (bool) – Condition that evaluates to bool, to check.

  • error_message_text (str) – Message to print in ValueError if condition does not evalute to True.