Basic Utilities (geoana.utils)#

The geoana.utils module provides a set of rudimentary functions that are commonly used within the code base.

mkvc(x[, n_dims])

Creates a vector with specified dimensionality.

ndgrid(*args, **kwargs)

Form tensorial grid for 1, 2, or 3 dimensions.

check_xyz_dim(xyz[, dim, dtype])

Checks if the arguments are compatible with the expected dimensionality and type

append_ndim(arr, ndim)

Appends dimensions to a numpy ndarray

requires(modules)

Decorate a function with soft dependencies.