ibex.data_source.imas_python_source_utils.apply_simple_operations¶
- ibex.data_source.imas_python_source_utils.apply_simple_operations(data: list | ndarray, operations: list[str])¶
Apply simple scalar operations to data in the order given. Each operation is a string in the format ‘type:value’, e.g. ‘add:10’, ‘mul:5’. :param data: Input data :param operations: List of operations and operands divided by colon (:) :return: Data after operation