self.variables = {"t": AttributeVariable(second, self.clock, "t"),
"dt": AttributeVariable(second, self.clock,
"dt", constant=True),
"_spikes": AttributeVariable(Unit(1),
self.source, "spikes"),
// The template needs to have access to the
// DynamicArray here, having access to the underlying
After Change
self.variables = {"t": AttributeVariable(second, self.clock, "t"),
"dt": AttributeVariable(second, self.clock,
"dt", constant=True),
"_spikespace": self.source.variables["_spikespace"],
// The template needs to have access to the
// DynamicArray here, having access to the underlying
// array is not enough since we want to do the resize