pyphi.examples.register_example#

pyphi.examples.register_example(func)[source]#

Register an example function in EXAMPLES[category][name].

The category is the last underscore-delimited token of the function name (so xor_substrate registers under EXAMPLES["substrate"]["xor"]) and must be one of EXAMPLE_CATEGORIES; a name that does not end in a known category raises, rather than registering under a spurious one.