'Similar to file.write(), but writes a numpy array instead of a string.
Also like file.write(), a flush() or close() may be needed before
the file on disk reflects the data written.'

def writearray(self, array):

    if hasattr(self._file, 'write'):
        _array_to_file(array, self._file)
