def setup_class(self): makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, window=p.window, default=True)
def setup_class(self): p.channels = ['IMAGE'] makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, default=True)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, channel_list=p.channels, public=True, readonly=0) cutout1 = "0/2,5/1,3/0,2" cutout2 = "0/1,3/4,6/2,5" cutout3 = "0/4,6/2,5/5,7" cutout4 = "0/6,8/5,9/2,4" syn_segments1 = [ [7, 3], ] syn_segments2 = [ [7, 4], ] syn_segments3 = [ [3, 9], ] syn_segments4 = [ [5, 4], ] f1 = createSpecificSynapse(1, syn_segments1, cutout1) putid = putAnnotation(p, f1) f2 = createSpecificSynapse(2, syn_segments2, cutout2) putid = putAnnotation(p, f2) f3 = createSpecificSynapse(3, syn_segments3, cutout3) putid = putAnnotation(p, f3) f4 = createSpecificSynapse(4, syn_segments4, cutout4) putid = putAnnotation(p, f4)
def setup_class(self): makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, time=p.time, base_resolution=3)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, p.channels, channel_type=IMAGE, channel_datatype=UINT8, public=True, ximagesize=1024, yimagesize=1024, zimagesize=20, xvoxelres=1.0, yvoxelres=1.0, zvoxelres=10.0, readonly=0) # modify params args to match new data size p.args = (0, 1024, 0, 1024, 1, 21) # post some sample image data self.image_data = np.random.randint(0, high=255, size=[1, 20, 1024, 1024]).astype(np.uint8) response = postNPZ(p, self.image_data) assert (response.code == 200) voxarray = getNPZ(p) # check that the return data matches assert (np.array_equal(voxarray, self.image_data))
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, public=True, channel_list=p.channels, ximagesize=1000, yimagesize=1000, zimagesize=16)
def setup_class(self): # Testing a different datatype now p.datatype = UINT16 makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, window=p.window, default=True)
def setup_class(self): p.channels = ['TIME1', 'TIME2'] p.datatype = UINT8 makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, time=p.time, default=True)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, public=True, channel_list=p.channels, ximagesize=500, yimagesize=500, zimagesize=64, scalingoption=ISOTROPIC)
def setup_class(self): makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, xvoxelres=p.voxel[0], yvoxelres=p.voxel[1], zvoxelres=p.voxel[2], window=p.window, default=True)
def setup_class(self): p.channels = ['TIME1', 'TIME2'] p.resolution = 0 makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, xvoxelres=p.voxel[0], yvoxelres=p.voxel[1], zvoxelres=p.voxel[2], time=p.time)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, public=True, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, ximagesize=1000, yimagesize=1000, zimagesize=10, readonly=READONLY_TRUE)
def setup_class(self): """Setup Parameters""" p.channels = [] makeunitdb.createTestDB(p.token, channel_list=p.channels, ximagesize=2000, yimagesize=2000, zimagesize=1000, xvoxelres=1.0, yvoxelres=1.0, zvoxelres=5.0)
def setup_class(self): """Setup Parameters""" makeunitdb.createTestDB(p.project, channel_list=p.channels, ximagesize=2000, yimagesize=2000, zimagesize=1000, xvoxelres=1.0, yvoxelres=1.0, zvoxelres=5.0, token_name=p.token) self.job_id = 0
def setup_class(self): """Create the unittest database""" # testing the propagation by setting the channel base resolution as 1 makeunitdb.createTestDB(p.token, public=True, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, ximagesize=1000, yimagesize=1000, zimagesize=100, base_resolution=1)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, p.channels, channel_type=IMAGE, channel_datatype=UINT8, public=True, ximagesize=1024, yimagesize=1024, zimagesize=10, xvoxelres=1.0, yvoxelres=1.0, zvoxelres=10.0, readonly=0)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, p.channels, channel_type=IMAGE, channel_datatype=UINT8, public=True, ximagesize=1024, yimagesize=1024, zimagesize=20, xvoxelres=1.0, yvoxelres=1.0, zvoxelres=10.0, readonly=0) # modify params args to match new data size p.args = (0,1024,0,1024,1,21) # post some sample image data self.image_data = np.random.randint(0, high=255, size=[1, 20, 1024, 1024]).astype(np.uint8) response = postNPZ(p, self.image_data) assert( response.code == 200 ) voxarray = getNPZ(p) # check that the return data matches assert( np.array_equal(voxarray, self.image_data) )
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, channel_list=p.channels, public=True, readonly=0, ximagesize=100, yimagesize=100, zimagesize=100) cutout1 = "0/2,5/1,3/1,3" cutout2 = "0/1,3/4,6/2,5" cutout3 = "0/4,6/2,5/5,7" cutout4 = "0/6,8/5,9/2,4" syn_segments1 = [7, 3] syn_segments2 = [7, 4] syn_segments3 = [3, 9] syn_segments4 = [5, 4] # syn_presegments1 = [7, 3, 5] # syn_presegments2 = [7, 4, 2, 8] # syn_presegments3 = [3, 9] # syn_presegments4 = [5] # syn_postsegments1 = [7, 3, 5] # syn_postsegments2 = [7, 4, 2, 8] # syn_postsegments3 = [3, 9] # syn_postsegments4 = [5] # RB COMMENT Old RAMON schema list of lists. # syn_segments1 = [[7, 3],] # syn_segments2 = [[7, 4],] # syn_segments3 = [[3, 9],] # syn_segments4 = [[5, 4],] f1 = createSpecificSynapse(1, syn_segments1, cutout1) putid = putAnnotation(p, f1) f2 = createSpecificSynapse(2, syn_segments2, cutout2) putid = putAnnotation(p, f2) f3 = createSpecificSynapse(3, syn_segments3, cutout3) putid = putAnnotation(p, f3) f4 = createSpecificSynapse(4, syn_segments4, cutout4) putid = putAnnotation(p, f4)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, channel_list=p.channels, public=True, readonly=0) cutout1 = "0/2,5/1,3/0,2" cutout2 = "0/1,3/4,6/2,5" cutout3 = "0/4,6/2,5/5,7" cutout4 = "0/6,8/5,9/2,4" syn_segments1 = [[7, 3], ] syn_segments2 = [[7, 4], ] syn_segments3 = [[3, 9], ] syn_segments4 = [[5, 4], ] f1 = createSpecificSynapse(1, syn_segments1, cutout1) putid = putAnnotation(p, f1) f2 = createSpecificSynapse(2, syn_segments2, cutout2) putid = putAnnotation(p, f2) f3 = createSpecificSynapse(3, syn_segments3, cutout3) putid = putAnnotation(p, f3) f4 = createSpecificSynapse(4, syn_segments4, cutout4) putid = putAnnotation(p, f4)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, public=True)
def setup_class(self): """Setup Parameters""" makeunitdb.createTestDB(p.token, readonly=0)
def setup_class(self): makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype)
def setup_class(self): """Setup Parameters""" makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB('unittest_rw')
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, readonly=0)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB('unittest', public=True, readonly=0)
def setup_class(self): """Setup Parameters""" makeunitdb.createTestDB(p.token, p.channels, channel_type=ANNOTATION, channel_datatype=UINT32, public=True, ximagesize=1024, yimagesize=1024, zimagesize=10, xvoxelres=1.0, yvoxelres=1.0, zvoxelres=10.0, readonly=0)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB('unittest')
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, public=True, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, ximagesize=1000, yimagesize=1000, zimagesize=10)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, public=True, channel_list=p.channels, ximagesize=1000, yimagesize=1000, zimagesize=128, scalingoption=ISOTROPIC)
def setup_class(self): """Create the unittest database""" makeunitdb.createTestDB(p.token, public=True, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, ximagesize=1000, yimagesize=1000, zimagesize=10, readonly=READONLY_FALSE ,propagate=PROPAGATED)
def setup_class(self): p.channels = ['TIME1', 'TIME2'] makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype, xvoxelres=p.voxel[0], yvoxelres=p.voxel[1], zvoxelres=p.voxel[2], time=p.time)