def setUp(self):
        """ Nastavení společných proměnných pro testy  """
        datashape = [120, 85, 30]
        self.datashape = datashape
        self.rnddata = np.random.rand(datashape[0], datashape[1], datashape[2])
        self.segmcube = np.zeros(datashape)
        self.segmcube[30:70, 40:60, 5:15] = 1

        self.ed = sed3(self.rnddata)
def setUp ( self ) : datashape = [ 120 , 85 , 30 ] self . datashape = datashape self . rnddata = np . random . rand ( datashape [ 0 ] , datashape [ 1 ] , datashape [ 2 ] ) self . segmcube = np . zeros ( datashape ) self . segmcube [ 30 : 70 , 40 : 60 , 5 : 15 ] = 1 self . ed = sed3 ( self . rnddata )
Nastavení společných proměnných pro testy