midspace

kgpy.midspace(start, stop, num, axis=0)

A modified version of numpy.linspace() that selects cell centers instead of cell edges.

Parameters:
Return type:

typing.Union[numpy._typing._array_like._SupportsArray[numpy.dtype[typing.Any]], numpy._typing._nested_sequence._NestedSequence[numpy._typing._array_like._SupportsArray[numpy.dtype[typing.Any]]], bool, int, float, complex, str, bytes, numpy._typing._nested_sequence._NestedSequence[typing.Union[bool, int, float, complex, str, bytes]]]

Returns: