mpacts.tools. arrayoperators

In order to be able to use this module import it like this:

import mpacts.tools.arrayoperators
#or assign it to a shorter name
import mpacts.tools.arrayoperators as arr
mpacts.tools.arrayoperators.array_to_numpy(array)

turns an Array (or for convenience also a list) into a numpy-array in an efficient way.

mpacts.tools.arrayoperators.box_distance_to_border(x)
mpacts.tools.arrayoperators.diff(xarray, yarray, bc_left=0, bc_right=0)
mpacts.tools.arrayoperators.displace_with_array(array, array_shift, scale=1.0)
mpacts.tools.arrayoperators.magnitude(array, axis=1)
mpacts.tools.arrayoperators.max(array, axis=0)
mpacts.tools.arrayoperators.mean(array, axis=0)
mpacts.tools.arrayoperators.median(array, axis=0)
mpacts.tools.arrayoperators.min(array, axis=0)
mpacts.tools.arrayoperators.running_mean(array, N)
mpacts.tools.arrayoperators.std(array, axis=0)
mpacts.tools.arrayoperators.sum(array, axis=0)