tkp.utility – miscellaneous utility routines

Submodules:

Root level tkp.utility functions that don’t justify a submodule:

class tkp.utility.adict[source]

Accessing dict keys like an attribute.

tkp.utility.substitute_inf(value, sub='Infinity')[source]

If value is not infinite, return value. Otherwise, return sub.

tkp.utility.substitute_nan(value, sub=0.0)[source]

If value is not NaN, return value. Otherwise, return sub.