SequentialFileBase

class baseband.helpers.sequentialfile.SequentialFileBase(files, mode='rb', opener=None)[source] [edit on github]

Bases: object

Deal with several files as if they were one contiguous one.

For details, see SequentialFileReader and SequentialFileWriter.

Methods Summary

close(self)

Close the currently open local file, and therewith the set.

memmap(self[, dtype, mode, offset, shape, order])

Map part of the file in memory.

tell(self)

Return the current stream position.

Methods Documentation

close(self)[source] [edit on github]

Close the currently open local file, and therewith the set.

memmap(self, dtype=<class 'numpy.uint8'>, mode=None, offset=None, shape=None, order='C')[source] [edit on github]

Map part of the file in memory.

Note that the map cannnot span multiple underlying files. Parameters are as for memmap.

tell(self)[source] [edit on github]

Return the current stream position.