def _calc_var(self):

        if self.data is None:
            raise RuntimeError('Fit the data model first.')

        data = self.data.T

        # variance calc
        var = np.nanvar(data, axis=1)
        total_var = var.sum()
        self.var_exp = total_var / self.eig_vals.cumsum()
dataset/ETHPy150Open allentran/pca-magic/ppca/_ppca.py/PPCA._calc_var/swapped operands of `/`