I get the following error when I try to use GUI to create or delete new devices or topics in transfer functions.
It occurs both in the online NRP 3.2.0 and the docker installation on Ubuntu 20.04.
In the GUI it seems that the device has been created but no code appears.
This error occurs only in the TFs in which I have already created decorators by directly writing them in the code. For example:
@nrp.MapVariable("i", initial_value=0)
@nrp.MapVariable("indata", initial_value=np.load('resources/sine_700.npy'))
@nrp.MapRobotSubscriber("camera", Topic("/icub/icub_model/left_eye_camera/image_raw", sensor_msgs.msg.Image))
@nrp.MapSpikeSource("input_burst",
nrp.map_neurons(range(nrp.config.brain_root.num_columns),
lambda i: nrp.brain.bursters[i]),
nrp.poisson,
weight=nrp.config.brain_root.w_inh,
receptor_type="excitatory")
@nrp.MapSpikeSource("input_pred",
nrp.map_neurons(range(nrp.config.brain_root.num_columns * nrp.config.brain_root.num_cells),
lambda i: nrp.brain.predictive[i]),
nrp.poisson,
weight=nrp.config.brain_root.w_inh,
receptor_type="excitatory")
@nrp.MapSpikeSource("input_perc",
nrp.map_neurons(range(nrp.config.brain_root.num_columns * nrp.config.brain_root.num_cells),
lambda i: nrp.brain.circuit[i]),
nrp.poisson,
weight=nrp.config.brain_root.w_inh,
receptor_type="excitatory",
delay=nrp.config.brain_root.itv*nrp.config.brain_root.step+0.1)
@nrp.Robot2Neuron()
def input_neurons(t, input_perc, input_pred, input_burst, camera, indata, i):
Moreover, sometimes the “create device” button stays inactive even when I tick some neurons, but I cannot pinpoint when it happens. As I was trying to investigate that, the button stopped working at all.
When I write the code directly, the TFs work like intended.
Best regards,
Mikołaj Miękus