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_raw : filehandle

Filehandle of the raw binary data file.

Methods Summary

close()
temporary_offset(**kwds) Context manager for temporarily seeking to another file position.

Methods Documentation

close()[source] [edit on github]
temporary_offset(**kwds)[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.