defmc2cum(mc):""" just chained because I have still the test case """first_step=mc2mnc(mc)ifisinstance(first_step,np.ndarray):first_step=first_step.Treturnmnc2cum(first_step)# return np.apply_along_axis(lambda x: mnc2cum(mc2mnc(x)), 0, mc)