template_cylinder_annulus(z, r_outer, r_inner=0)[source]#

This method generates an image array of a disc-ring.

It is useful for passing to Cubic networks as a template to make circular-shaped 2D networks.

  • z (int) – The height of the cylinder. A value of 0 will result in a circle

  • r_outer (int) – Number of nodes in the outer radius of the cylinder

  • r_inner (int, optional) – Number of the nodes in the inner radius of the annulus. A value of 0 will result in a solid cylinder.


im – A Numpy array containing 1’s to demarcate the disc-ring, and 0’s elsewhere.

Return type: