The initial conditions: The array data is a 1d numpy array of length 50 000 p is an integer that can vary between 10 and 300.
This results in an error:
fro