Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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))
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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
Beispiel #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)
Beispiel #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)
Beispiel #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) )
Beispiel #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)
Beispiel #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)
Beispiel #20
0
 def setup_class(self):
     """Create the unittest database"""
     makeunitdb.createTestDB(p.token, public=True)
Beispiel #21
0
 def setup_class(self):
   """Setup Parameters"""
   makeunitdb.createTestDB(p.token, readonly=0)
Beispiel #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)
Beispiel #23
0
    def setup_class(self):

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

        makeunitdb.createTestDB('unittest_rw')
Beispiel #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)
Beispiel #30
0
 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)
Beispiel #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)
Beispiel #33
0
  def setup_class(self):
    """Create the unittest database"""

    makeunitdb.createTestDB('unittest')
Beispiel #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)
Beispiel #35
0
  def setup_class(self):

    makeunitdb.createTestDB(p.token, channel_list=p.channels, channel_type=p.channel_type, channel_datatype=p.datatype)
Beispiel #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)
Beispiel #37
0
 def setup_class(self):
   """Create the unittest database"""
   makeunitdb.createTestDB(p.token, public=True)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #45
0
 def setup_class(self):
     """Create the unittest database"""
     makeunitdb.createTestDB(p.token, readonly=0)