def test_Block_basic(self): a = CLT() a.path_in = ["./data/vagus001.h5", "volume/data"] a.path_out = ["/tmp/test.h5", "data"] a.Sub_Volume = [[0, 100], [0, 100], [0, 17]] a.blockSize = [50, 50, 50] a.helo = 10 a.sigmaSmooth = 0.7 a.thresMembra = 0.7 a.sizeFilter = [20, 1000] a.run() res = a.res[::] score = a.getScore() assert res.shape == (100, 100, 17)
def test_CLT_basic(self): a=CLT() a.path_in= ["./data/vagus001.h5","volume/data"] a.path_out = ["/tmp/test.h5","data"] a.Sub_Volume = [[0,50],[0,50],[0,50]] a.blockSize = [25,25,25] a.helo = 10 a.sigmaSmooth = 0.7 a.thresMembra = 0.7 a.sizeFilter = [20,1000] #test if executing twice does not fail a.run() a.run()
def test_CLT_basic(self): a = CLT() a.path_in = ["./data/vagus001.h5", "volume/data"] a.path_out = ["/tmp/test.h5", "data"] a.Sub_Volume = [[0, 50], [0, 50], [0, 50]] a.blockSize = [25, 25, 25] a.helo = 10 a.sigmaSmooth = 0.7 a.thresMembra = 0.7 a.sizeFilter = [20, 1000] #test if executing twice does not fail a.run() a.run()
def test_Block_basic(self): a=CLT() a.path_in = ["./data/vagus001.h5","volume/data"] a.path_out = ["/tmp/test.h5","data"] a.Sub_Volume = [[0,100], [0,100], [0,17]] a.blockSize = [50,50,50] a.helo = 10 a.sigmaSmooth = 0.7 a.thresMembra = 0.7 a.sizeFilter = [20,1000] a.run() res = a.res[::] score = a.getScore() assert res.shape == (100,100,17)