mindscience.common.to_3tuple

mindscience.common.to_3tuple(t)[source]

Convert an integer or a tuple of integers to a 3-tuple.

Parameters

t (Union[int, tuple(int)]) – The depth, height and width of the grid.

Returns

Tuple(int, int, int), same as input or a tuple as (t,t,t).