utils

A package containing classes and functions with common use.

Submodules

Summary

__all__ Functions:

calculate_simulation_time

Calculates simulation time from a timestep count.

count_decorator

Decorator which counts the number of times a function is called.

instance_function_count_decorator

Decorator which counts the number of times a function is called for an instance of a class.

print_header

A function to print the header of the program.

timeit_in_class

Decorator which measures the time a function of a class takes to execute and sets elapsed time as an attribute of the class.

Reference