FunTuple.common_util
Attributes
Functions
|
|
|
Internal function to check that the type of 'var' is the required type 'required_type'. |
|
Internal function that takes as input various arguments needed by algorithms |
Module Contents
- check_type(var, attribute_name, required_type)[source]
Internal function to check that the type of ‘var’ is the required type ‘required_type’.
TODO: This function is not needed if we use ‘typing’ module, first check what python3 version is assumed for testing.
- conduct_checks_and_transform(name, tuple_name, fields, variables, loki_preamble)[source]
Internal function that takes as input various arguments needed by algorithms
FunTupleBase_Particles
andFunTupleBase_MCParticles
and: - Conducts various type checks on the arguments.(TODO: need to replace with ‘typing’ module depending on what python3 version is assuming for testing)
Transforms the inputs into an output tuple then directly used to set the attributes of the FunTupleBase classes
FunTupleBase_Particles
orFunTupleBase_MCParticles
.