VLBIFileBase

class baseband.vlbi_base.base.VLBIFileBase(fh_raw)[source] [edit on github]

Bases: object

VLBI file wrapper, used to add frame methods to a binary data file.

The underlying file is stored in fh_raw and all attributes that do not exist on the class itself are looked up on it.

Parameters
fh_rawfilehandle

Filehandle of the raw binary data file.

Methods Summary

close(self)

temporary_offset(self)

Context manager for temporarily seeking to another file position.

Methods Documentation

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

Context manager for temporarily seeking to another file position.

To be used as part of a with statement:

with fh_raw.temporary_offset() [as fh_raw]:
    with-block

On exiting the with-block, the file pointer is moved back to its original position.