Hi all! I am just starting my journey into this awesome world. I have a possibly dumb question. If I have a csv of IMU data from an accelerometer how can I use that as an input to a nengo.Node(). I have gone through the MINST tutorial but it doesn’t seem to translate very well for a vector capturing a signal at a specific sampling freq. Is there a way to feed a numpy array into a Node?
Here is an example of what I am working with:
%matplotlib inline import matplotlib.pyplot as plt import numpy as np import nengo x = df_walking.iloc[0,:-1].values model_test = nengo.Network(label="Communications Channel") with model_test: # Create input signal from x accel_x = nengo.Node(x) with model_test: accel_x_probe = nengo.Probe(accel_x) with nengo.Simulator(model_test) as sim: sim.run(2) plt.figure() plt.subplot(2, 1, 1) plt.plot(sim.trange(), sim.data[accel_x_probe], lw=2) plt.title("Input")
I end up getting the following plot: