Ensemble Slicing

Trying to slice an index, using this form —> Ensemble_Name[ : : slice_step]
However it gave me some error —> " ‘ObjView’ object has no attribute ‘getitem’ "
Any ideas ??

Can you post a minimal example that reproduces your problem? If Ensemble_Name is an Ensemble, then the snippet you have above should work. For example,

a = nengo.Ensemble(100, 10)
b = a[::2]

works fine. However, you can’t slice into slices of Ensembles. So if you then tried to do

c = b[::2]

you get the error TypeError: 'ObjView' object has no attribute '__getitem__'


Thank you.
Yes , the problem was slicing in a slice.
When sliced once it was solved