SciFiReaders.readers.microscopy.spm.stm.nanonis_base.save_array#
- SciFiReaders.readers.microscopy.spm.stm.nanonis_base.save_array(file, arr, allow_pickle=True)[source]#
Wrapper to numpy.save method for arrays.
The idea would be to use this to save a processed array for later use in a matplotlib figure generation scripts. See numpy.save documentation for details.
- Parameters:
file (file or str) – File or filename to which the data is saved. If file is a file- object, then the filename is unchanged. If file is a string, a
.npyextension will be appended to the file name if it does not already have one.arr (array_like) – Array data to be saved.
allow_pickle (bool, optional) – Allow saving object arrays using Python pickles. Reasons for disallowing pickles include security (loading pickled data can execute arbitrary code) and portability (pickled objects may not be loadable on different Python installations, for example if the stored objects require libraries that are not available, and not all pickled data is compatible between Python 2 and Python 3). Default: True