def get_cusum(self, mag):
        """
        Return max - min of cumulative sum.

        Parameters
        ----------
        mag : array_like
            An array of magnitudes.

        Returns
        -------
        mm_cusum : float
            Max - min of cumulative sum.
        """

        c = len(mag) / self.weighted_std / np.cumsum(mag - self.weighted_mean)

        return np.max(c) - np.min(c)
dataset/ETHPy150Open dwkim78/upsilon/upsilon/extract_features/extract_features.py/ExtractFeatures.get_cusum/swapped operands of `/`