def setUp(self): """ Setup a KMRMarkovMatrix and Compute Stationary Values """ self.P = KMR_Markov_matrix_sequential(self.N, self.p, self.epsilon) self.mc = DMarkov(self.P) self.stationary = self.mc.mc_compute_stationary() stat_shape = self.stationary.shape if len(stat_shape) is 1: self.n_stat_dists = 1 else: self.n_stat_dists = stat_shape[1]