def setUp(self): self.flag_verbose = args.verbose self.mess = [0] * 3 for i in range(len(self.mess)): fake_data = (i+1) * numpy.ones((10,20)) self.mess[i] = PE.pe("Test", flag_verbose = self.flag_verbose) self.mess[i].r = [fake_data, fake_data] self.mess[i].r_axis = [numpy.arange(10), 10, numpy.arange(20)] self.mess[i].undersampling = 0 # assign after r to enabled calculation of zeropad_by # assign before s to prevent a warning that it changed self.mess[i].zeropad_to = 0 self.mess[i].phase_degrees = 42 self.mess[i].n_scans = 1 self.mess[i].s = fake_data self.mess[i].s_axis = [numpy.arange(10), 10, numpy.arange(20)] self.mess[0].obj_id = "A" self.mess[1].obj_id = "B" self.mess[2].obj_id = "C"