iterable_cache¶
iterable_cache
-
sorts.simulation.
iterable_cache
(steps, caches, MPI=False, log=False, reduce=None)[source]¶ Simulation step cache iteration decorator
- Parameters
steps (str/list) – The name/list of names of the cached steps to be iterated over. It uses the step name to find the files in the corresponding folder.
caches (str/list) – The name/list of cache-methods to be used to load the caches of the steps.
MPI (bool) – Determines if the iteration should be MPI-parallelized.
log (bool) – Use the
self.logger
instance, if it exists, to log the execution of the iteration.reduce (function) – A pointer to the binary-function used to reduce the results.