qmat.utils

Utility function for qmat

Functions

checkOverriding(cls, name[, isProperty])

Check if a class overrides a method with a given name

checkGenericConstr(cls)

Check if a class implement a constructor with a **kwargs generic parameter

storeAlias(cls, dico, alias)

Store a class into a dictionary with a given alias

storeClass(cls, dico)

Store a class into a dictionary

importAll(localVars, __all__, __path__, __name__, ...)

Import all submodules in the current (sub-)package

getClasses(dico[, module])

Retrieve all classes stored into a dictionary, filtering aliases

useQGen(__init__)

Wrapper to extract \(Q_\Delta\)-generator parameters from kwargs argument,

Module Contents

checkOverriding(cls, name, isProperty=True)[source]

Check if a class overrides a method with a given name

checkGenericConstr(cls)[source]

Check if a class implement a constructor with a **kwargs generic parameter

storeAlias(cls, dico, alias)[source]

Store a class into a dictionary with a given alias

storeClass(cls, dico)[source]

Store a class into a dictionary

importAll(localVars, __all__, __path__, __name__, __import__)[source]

Import all submodules in the current (sub-)package

getClasses(dico, module=None)[source]

Retrieve all classes stored into a dictionary, filtering aliases

useQGen(__init__)[source]

Wrapper to extract \(Q_\Delta\)-generator parameters from kwargs argument, using either a \(Q\)-generator qGen or separately given parameters.