bob.io.save

bob.io.save(array, filename, create_directories=False)[source]

Saves the contents of an array-like object to file.

Effectively, this is the same as creating a bob.io.File object with the mode flag set to w (write with truncation) and calling bob.io.File.write() passing array as parameter.

Parameters:

array
The array-like object to be saved on the file
filename
The name of the file where you need the contents saved to
create_directories
Automatically generate the directories if required