def get_asymmetry(arr):
    '\n    Returns asymmetry of an array.\n    \n    Parameters\n    ----------\n    arr : ndarray\n        an array to find asymmetry\n\n    Returns\n    -------\n    ndarray\n        an array capturing asymmetry of original array\n    '
    arr_rev = arr[::(- 1), ::(- 1), ::(- 1)]
    denom = ((arr + arr_rev) / 2.0)
    denom_nz = np.where((denom == 0), 1.0, denom)
    asym = np.where((denom > 0.0), (abs((arr - arr_rev)) / denom_nz), 0.0)
    return np.where((arr > 0), asym, 0)
Returns asymmetry of an array.

Parameters
----------
arr : ndarray
    an array to find asymmetry

Returns
-------
ndarray
    an array capturing asymmetry of original array
def get_asymmetry(arr):
    '\n    Returns asymmetry of an array.\n    \n    Parameters\n    ----------\n    arr : ndarray\n        an array to find asymmetry\n\n    Returns\n    -------\n    ndarray\n        an array capturing asymmetry of original array\n    '
    arr_rev = arr[::(- 1), ::(- 1), ::(- 1)]
    denom = ((arr + arr_rev) / 2.0)
    denom_nz = np.where((denom == 0), 1.0, denom)
    asym = np.where((denom > 0.0), (abs((arr - arr_rev)) / denom_nz), 0.0)
    return np.where((arr > 0), asym, 0)