Misc. Utilities (gala.util)#

Introduction#

This subpackage contains miscellaneous utilities.

API#

gala.util Module#

General utilities.

Functions#

rolling_window(arr, window_size[, stride, ...])

There is an example of an iterator for pure-Python objects in: http://stackoverflow.com/questions/6822725/rolling-or-sliding-window-iterator-in-python This is a rolling-window iterator Numpy arrays, with window size and stride control.

atleast_2d(*arys, **kwargs)

View inputs as arrays with at least two dimensions.

assert_angles_allclose(x, y, **kwargs)

Like numpy's assert_allclose, but for angles (in radians).