utilities

wield.control.utilities

Modules

algorithm_choice

This module includes the set of helper functions to maintain the algorithm ranking lists for controls classes.

Classes

ConstructorMethod(method)

This is a python descriptor class, to be used as a decorator

Functions

constructormethod(method)

This is a python descriptor class, to be used as a decorator

Details

constructormethod(method)[source][github]

This is a python descriptor class, to be used as a decorator

@constructormethod def __init_method__(self, *args, **kw):

self.abc = 123 return

This decorator allows a method to be used either as a classmethod or as an instance method. Both will do the same thing, but if used by a class, it will create and instance with __new__ and then return it