def makeBasicResponseCycles(cycles=10, nCorrect=4, nIncorrect=4, length=None):
 responsesCorrectPerCycle = np.ones(nCorrect, dtype=np.int)
 responsesIncorrectPerCycle = np.zeros(nIncorrect, dtype=np.int)
 responses = np.tile(np.r_[(responsesCorrectPerCycle, responsesIncorrectPerCycle)], cycles).tolist()
 if (length is not None):
  return responses[:length]
 else:
  return responses

def makeBasicResponseCycles ( cycles = 10 , nCorrect = 4 , nIncorrect = 4 , length = None ) : responsesCorrectPerCycle = np . ones ( nCorrect , dtype = np . int ) responsesIncorrectPerCycle = np . zeros ( nIncorrect , dtype = np . int ) responses = np . tile ( np . r_ [ ( responsesCorrectPerCycle , responsesIncorrectPerCycle ) ] , cycles ) . tolist ( ) if ( length is not None ) : return responses [ : length ] else : return responses
helper function to create a basic set of responses .