xnn.common.data.grid_pairs.grid_shape#

xnn.common.data.grid_pairs.grid_shape(lengths, cutoff, span=1)[source]#

The cells per axis of a grid over an orthorhombic cell with edges lengths: as many as fit at least cutoff / span wide, or None with fewer than 2 span + 1 on an axis.

Parameters:
Return type:

tuple | None