FunTuple.common_util

Attributes

log

Functions

prepend_fieldname_to_arrayindex(functorcoll, field_name)

check_type(var, attribute_name, required_type)

Internal function to check that the type of 'var' is the required type 'required_type'.

conduct_checks_and_transform(name, tuple_name, fields, ...)

Internal function that takes as input various arguments needed by algorithms

Module Contents

log[source]
prepend_fieldname_to_arrayindex(functorcoll, field_name)[source]
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 and FunTupleBase_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 or FunTupleBase_MCParticles.