def create_frame(time=<NUM_LIT:0>, duration=None, name='<STR_LIT>', run=-<NUM_LIT:1>, ifos=None):
from LDAStools import frameCPP<EOL>frame = frameCPP.FrameH()<EOL>gps = to_gps(time)<EOL>gps = frameCPP.GPSTime(gps.gpsSeconds, gps.gpsNanoSeconds)<EOL>frame.SetGTime(gps)<EOL>if duration is not None:<EOL><INDENT>frame.SetDt(float(duration))<EOL><DEDENT>for prefix in ifos or []:<EOL><INDENT>idx = getattr(frameCPP, '<STR_LIT>' % prefix)<EOL>frame.AppendFrDetector(frameCPP.GetDetector(idx, gps))<EOL><DEDENT>frame.SetName(name)<EOL>frame.SetRun(run)<EOL>return frame<EOL>
Create a new :class:`~LDAStools.frameCPP.FrameH`

    **Requires:** |LDAStools.frameCPP|_

    Parameters
    ----------
    time : `float`, optional
        frame start time in GPS seconds

    duration : `float`, optional
        frame length in seconds

    name : `str`, optional
        name of project or other experiment description

    run : `int`, optional
        run number (number < 0 reserved for simulated data); monotonic for
        experimental runs

    ifos : `list`, optional
        list of interferometer prefices (e.g. ``'L1'``) associated with this
        frame

    Returns
    -------
    frame : :class:`~LDAStools.frameCPP.FrameH`
        the newly created frame header