def getSequenceIndexFromProcedure(procedure):
 craftSequence = getReadCraftSequence()
 if (procedure not in craftSequence):
  return 0
 return craftSequence.index(procedure)

def getSequenceIndexFromProcedure ( procedure ) : craftSequence = getReadCraftSequence ( ) if ( procedure not in craftSequence ) : return 0 return craftSequence . index ( procedure )
get the profile sequence index of the procedure .