save_array (method)

save_array(file, data, fmt='%7.2f', delimiter=', ', header='data', slice='slice', sep=':')[source]

Function to save numpy nD arrays. Therefore the array is sliced except for the last 2 dimenions.

Parameters
  • file (str) – the save filename

  • header (str) – some file header string

  • sep (str) – seperator that delimits the shape information in the header

  • delimiter (str) – data delimiter

  • fmt (str) – string to define the output number format that is passed to numpy.savetext

Returns

Return type

None