foxes.engines.XArrayEngine.map(func, inputs, *args, **kwargs)[source]

Runs a function on a list of files

Parameters

func: Callable

Function to be called on each file, func(input, *args, **kwargs) -> data

inputs: array-like

The input data list

args: tuple, optional

Arguments for func

kwargs: dict, optional

Keyword arguments for func

Returns

results: list

The list of results