Exemplo n.º 1
0
 def setUp(self):
     ics = np.random.laplace(size=(3, 1024))
     np.random.seed(1)
     mixing_matrix = np.random.random((100, 3))
     s = Image(np.dot(mixing_matrix, ics).reshape((100, 32, 32)))
     for (axis, name) in zip(s.axes_manager._axes, ("z", "y", "x")):
         axis.name = name
     s.decomposition()
     self.s = s