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.

Attributes Summary

file_nr

Methods Summary

close()

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

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

Map part of the file in memory.

tell()

Return the current stream position.

Attributes Documentation

file_nr = None

Methods Documentation

close()[source] [edit on github]

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

memmap(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()[source] [edit on github]

Return the current stream position.