Controls for checking, timing and tracing

The cayley_graph_controls module defines controls for checking, timing and tracing that can be set and used anywhere they are imported.

AUTHORS:

  • Paul Leopardi (2016-08-21): initial version

boolean_cayley_graphs.cayley_graph_controls.checking = False

Enable built-in diagnostic tests that may be time consuming.

EXAMPLE:

sage: import boolean_cayley_graphs.cayley_graph_controls as controls
sage: controls.checking = True
sage: if controls.checking:
....:     print("Checking!")
....:
Checking!
boolean_cayley_graphs.cayley_graph_controls.timing = False

Enable timers.

EXAMPLE:

sage: import boolean_cayley_graphs.cayley_graph_controls as controls
sage: controls.timing = True
sage: if controls.timing:
....:     print("Timing!")
....:
Timing!
boolean_cayley_graphs.cayley_graph_controls.verbose = False

Increase verbosity: print extra details.

EXAMPLE:

sage: import boolean_cayley_graphs.cayley_graph_controls as controls
sage: controls.verbose = True
sage: if controls.verbose:
....:     print("This message is verbose.")
....:
This message is verbose.