calour.util.register_functions

calour.util.register_functions(cls, modules=None)[source]

Dynamically register functions to the class as methods.

Parameters:
  • cls (class object) – The class that the functions will be added to
  • modules (iterable of str, optional) – The module names where the functions are defined. None means all public modules in calour.