def setup_class(cls): cls.dist_sz, cls.nvox, cls.nt, cls.nf = 16, 100, 10, 4 stat = np.random.randn(cls.nvox, cls.nt, cls.nf) rankings = np.random.rand(cls.nvox, cls.nt, cls.nf) max_dist = np.random.randn(cls.dist_sz, cls.nt, cls.nf) min_dist = np.random.randn(cls.dist_sz, cls.nt, cls.nf) vox = voxel_index_list((5,5,5))[:cls.nvox] cls.s_res = TimeFreqSnPMResults( stat, vox, rankings, max_dist, min_dist )