@classmethod<EOL><INDENT>def from_veto_def(cls, veto):<DEDENT>
name = '<STR_LIT>' % (veto.ifo, veto.name)<EOL>try:<EOL><INDENT>name += '<STR_LIT>' % int(veto.version)<EOL><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT>if veto.end_time == <NUM_LIT:0>:<EOL><INDENT>veto.end_time = +inf<EOL><DEDENT>known = Segment(veto.start_time, veto.end_time)<EOL>pad = (veto.start_pad, veto.end_pad)<EOL>return cls(name=name, known=[known], category=veto.category,<EOL>description=veto.comment, padding=pad)<EOL>
Define a `DataQualityFlag` from a `VetoDef`

        Parameters
        ----------
        veto : :class:`~ligo.lw.lsctables.VetoDef`
            veto definition to convert from