get_backend#
- gwpy.io.gwf.get_backend( ) str[source]#
Return the preferred GWF backend.
This can be configured via the
GWPY_FRAME_LIBRARYenvironment variable, which can be set to the name of any of the interface modules defined undergwpy.io.gwf(or the module path given bypackage):"frameCPP""FrameL""LALFrame"
Otherwise that list is manually searched in the order given above.
- Parameters:
Examples
If the environment variable
GWPY_FRAME_LIBRARYis set:>>> os.environ["GWPY_FRAME_LIBRARY"] = "FrameL" >>> from gwpy.io.gwf import get_backend >>> get_backend() 'FrameL'
Or, if you have
LDAStools.frameCPPinstalled:>>> from gwpy.io.gwf import get_backend >>> get_backend() 'frameCPP'
Or, if you don’t have
lalframe:>>> get_backend() 'LALFrame'
Otherwise:
>>> get_backend() ImportError: no GWF API available, please install a third-party GWF library (frameCPP, FrameL, LALFrame) and try again