def isProcedureDone(gcodeText, procedure):
 if (gcodeText == ''):
  return False
 extruderInitializationIndex = gcodeText.find('(</extruderInitialization>)')
 if (extruderInitializationIndex == (-1)):
  return False
 return (gcodeText.find(getTagBracketedProcedure(procedure), 0, extruderInitializationIndex) != (-1))

def isProcedureDone ( gcodeText , procedure ) : if ( gcodeText == '' ) : return False extruderInitializationIndex = gcodeText . find ( '(</extruderInitialization>)' ) if ( extruderInitializationIndex == ( - 1 ) ) : return False return ( gcodeText . find ( getTagBracketedProcedure ( procedure ) , 0 , extruderInitializationIndex ) != ( - 1 ) )
determine if the procedure has been done on the gcode text .