template_sphere_shell#

template_sphere_shell(r_outer, r_inner=0)[source]#

This method generates an image array of a sphere-shell.

It is useful for passing to Cubic networks as a template to make spherical shaped networks.

Parameters:
  • r_outer (int) – Number of nodes in the outer radius of the sphere

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

Returns:

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

Return type:

array_like