pyacs.lib.utils

Various useful routines.

ensure_list_of_list

Utilities for list normalization.

make_grid

Generate a regular grid and optionally write it to a text file.

numpy_array_2_numpy_recarray

Convert a numpy array to a numpy recarray.

numpy_recarray_2_numpy_array

Convert a structured array (homogeneous dtype) to a numpy array.

run_cmd

Run a command using subprocess and check for errors.

save_np_array_with_string

Save a numpy array as a text file with a string column per row.

str2list_float

Convert a string representation of a list to a list of floats.