Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
    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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
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))
Exemplo n.º 6
0
 def setup_class(self):
     """Create the unittest database"""
     makeunitdb.createTestDB(p.token,
                             public=True,
                             channel_list=p.channels,
                             ximagesize=1000,
                             yimagesize=1000,
                             zimagesize=16)
Exemplo n.º 7
0
 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)
Exemplo n.º 8
0
 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)
Exemplo n.º 9
0
 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)
Exemplo n.º 10
0
 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)
Exemplo n.º 11
0
 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)
Exemplo n.º 12
0
 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)
Exemplo n.º 13
0
 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)
Exemplo n.º 14
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
Exemplo n.º 15
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)
Exemplo n.º 16
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=10,
                             xvoxelres=1.0,
                             yvoxelres=1.0,
                             zvoxelres=10.0,
                             readonly=0)
Exemplo n.º 17
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) )
Exemplo n.º 18
0
    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)
Exemplo n.º 19
0
  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)
Exemplo n.º 20
0
 def setup_class(self):
     """Create the unittest database"""
     makeunitdb.createTestDB(p.token, public=True)
Exemplo n.º 21
0
 def setup_class(self):
   """Setup Parameters"""
   makeunitdb.createTestDB(p.token, readonly=0)
Exemplo n.º 22
0
 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)
Exemplo n.º 23
0
    def setup_class(self):

        makeunitdb.createTestDB(p.token,
                                channel_list=p.channels,
                                channel_type=p.channel_type,
                                channel_datatype=p.datatype)
Exemplo n.º 24
0
 def setup_class(self):
   """Setup Parameters"""
   makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype)
Exemplo n.º 25
0
 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)
Exemplo n.º 26
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
Exemplo n.º 27
0
 def setup_class(self):
   """Setup Parameters"""
   makeunitdb.createTestDB(p.token, readonly=0)
Exemplo n.º 28
0
    def setup_class(self):
        """Create the unittest database"""

        makeunitdb.createTestDB('unittest_rw')
Exemplo n.º 29
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=10, xvoxelres=1.0, yvoxelres=1.0, zvoxelres=10.0, readonly=0)
Exemplo n.º 30
0
 def setup_class(self):
   """Create the unittest database"""
   makeunitdb.createTestDB(p.token, readonly=0)
Exemplo n.º 31
0
 def setup_class(self):
     """Create the unittest database"""
     makeunitdb.createTestDB('unittest', public=True, readonly=0)
Exemplo n.º 32
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)
Exemplo n.º 33
0
  def setup_class(self):
    """Create the unittest database"""

    makeunitdb.createTestDB('unittest')
Exemplo n.º 34
0
 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)
Exemplo n.º 35
0
  def setup_class(self):

    makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype)
Exemplo n.º 36
0
 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)
Exemplo n.º 37
0
 def setup_class(self):
   """Create the unittest database"""
   makeunitdb.createTestDB(p.token, public=True)
Exemplo n.º 38
0
 def setup_class(self):
   """Create the unittest database"""
   makeunitdb.createTestDB('unittest', public=True, readonly=0)
 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)
Exemplo n.º 40
0
 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(p.token, public=True, channel_list=p.channels, ximagesize=1000, yimagesize=1000, zimagesize=128, scalingoption=ISOTROPIC)
Exemplo n.º 42
0
 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):
   """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)
Exemplo n.º 44
0
 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)
Exemplo n.º 45
0
 def setup_class(self):
     """Create the unittest database"""
     makeunitdb.createTestDB(p.token, readonly=0)