I have the following code:
dt = .001 # simulation time step (seconds)
T = 1.0 # total time to simulate (seconds)
time = np.linspace(dt,T,dt/T)
But I am getting the following error:
TypeError: 'float' object cannot be interpreted as an integer
time = np.linspace(dt,T,dt) # vector of timepoints we will simulate
I am writing the code in a PyCharm IDE using a Conda virtual environment to provide a little more context. Thank in advance!