get_middle¶
-
mdtools.numpy_helper_functions.
get_middle
(a, n=1, debug=False)[source]¶ Get the n innermost elements of a 1-dimensional array.
- Parameters
a (array_like) – The 1-dimensional array from which to get the n middle elements.
n (int, optional) – Number of elements to write out.
debug (bool, optional) – If
True
, check the input arguments.
- Returns
b – Array of the n innermost elements of a.
- Return type
array_like