I am trying to alter the values in an array that I am working on.
This was my first try but the values did not change apparently
for x in  TimedA:
    x=TimedA[i]=Ihold+Iscale*x
and then I tried this:
for i in enumerate(TimedA):
TimedA[i]=Ihold+Iscale*TimedA[i]
but get this error:
TypeError                                 Traceback (most recent call last)
<ipython-input-159-62d5e5c1c721> in <module>
     18 #new stimulus with scaling
     19 for i in enumerate(TimedA):
---> 20     TimedA[i]=Ihold+Iscale*TimedA[i]
     21     #print(x)
     22 
TypeError: list indices must be integers or slices, not tuple
Can you explain to me what is going wrong?
 
     
    