box

Contents

box#

class brainpy.state.spatial.box(lower_left, upper_right)[source]#

Box mask (2-D/3-D): target displacement within [lower_left, upper_right].

Examples

>>> from brainpy import state as bp
>>> mask = bp.spatial.box([-0.75, -0.75, -0.75], [0.75, 0.75, 0.75])