tpcp.misc: Miscellaneous helper and utility functions#
Some general utilities for tpcp.
Classes#
|
A Base class to implement custom typed iterators. |
|
Helper to iterate over data and collect results. |
|
A warning/error context and its persistent event records. |
|
A warning, error, or contextual print captured by an active context. |
Functions#
|
Quick calculation of a hash to identify uniquely Python objects containing numpy arrays and torch models. |
|
A decorator that converts a class method into a class property. |
|
Pair every item with a warning/error context creator. |
|
Print values with the active context and retain the original message. |
|
Set the default values of a function's parameters. |
|
Add structured context information to warnings and exceptions raised in the context. |