postprocessing.utils

Functions

check_input_vector(var, name[, check_norm])

Function to check an input vector to ensure it is valid, and return the corresponding vector in numpy format.

Module Contents

postprocessing.utils.check_input_vector(var, name, check_norm=True)

Function to check an input vector to ensure it is valid, and return the corresponding vector in numpy format.

Parameters:
varstr or list

Vector value either as a string (eg. X) or list [1 0 0].

namestr

Variable name.

check_norm: bool

Check the norm of the vector to ensure it is length one.

Returns:
ndarray

Vector of length three with the corresponding vector.