otwrapy.dump_array¶
- dump_array(array, filename, compress=False)¶
Dump an array to a (possibly compressed) file.
- Parameters:
- arrayarray
Array to be compressed. Typically a np.array or ot.Sample.
- filenamestr
Path where the file is dumped. If the extension is ‘.pklz’, it considers that the file has to be compressed with gzip.
- compressedbool
Indicates if the file has to be compressed with gzip or not.