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_substrateregisters underEXAMPLES["substrate"]["xor"]) and must be one ofEXAMPLE_CATEGORIES; a name that does not end in a known category raises, rather than registering under a spurious one.