pyacs.lib.utils.numpy_array_2_numpy_recarray
Convert numpy arrays to recarrays.
- pyacs.lib.utils.numpy_array_2_numpy_recarray.numpy_array_2_numpy_recarray(A, names)[source]
Convert a numpy array to a numpy recarray.
- Parameters:
A (numpy.ndarray) – 2D array.
names (list of str) – Field names for each column.
- Returns:
Record array with the given names.
- Return type:
numpy.recarray