1D numpy concatenate: TypeError: only integer scalar arrays can be converted to a scalar index [duplicate]
You need to pass the arrays as an iterable (a tuple or list), thus the correct syntax is
x=np.concatenate((x, s_x))
You need to pass the arrays as an iterable (a tuple or list), thus the correct syntax is
x=np.concatenate((x, s_x))