1.3. How to modify a Channel valuesΒΆ

In this example we access the Channel numpy array to modify it.

Given a Channel named channel:

array = channel.getNDArray()
#modify it data
array[::2,::2,::2] = 1
#tell the channel that it data was modified (this can trigger event)
channel.setDataDirty()