def is_cura_gcode(gcode):
    """Detect cura generated gcode by looking for the profile string"""
    for layer in gcode.all_layers:
        for opcode in layer:
            if 'CURA_PROFILE_STRING' in opcode.raw:
                return True
    return False
