curver.kernel.decorators module

A module for decorators.

curver.kernel.decorators.ensure(*fs)[source]

A decorator that specifies properties that the result of a functions should have.

curver.kernel.decorators.memoize(function)[source]

A decorator that memoizes a method of a class.

curver.kernel.decorators.topological_invariant(function)[source]

Mark this function as a topological invariant.

This is allows it to be picked out by the TopologicalInvariant unittests.