@classmethod
    def from_gerber(cls, line):
        if 'G74' not in line and 'G75' not in line:
            raise ValueError('%s is not a valid quadrant mode statement'
                             % line)
        return (cls('single-quadrant') if line[:3] == 'G74'
                else cls('multi-quadrant'))
dataset/ETHPy150Open curtacircuitos/pcb-tools/gerber/gerber_statements.py/QuadrantModeStmt.from_gerber/original