I am trying to make my code easily adaptable for anyone else using the code.
In the example below, the idea is that if the person using the code does not want a certain stimulus shown in the experiment, all they have to do is set practice to ‘False’. If it is set to ‘True’, the stimulus will be shown.
‘practice’ will be at the top of the script.
My question is, is this pythonic? I feel like there is a better way to do this (or maybe I shouldn’t do it at all).
practice == True if practice == True: stim.draw()