Ejemplo n.º 1
0
    def test_positions_allocator_a(self) -> None:

        a1 = PositionsAllocator.get(3)
        a2 = PositionsAllocator.get(4)
        a3 = PositionsAllocator.get(5)
        self.assertTrue(mloc(a1) == mloc(a2))
        self.assertTrue(mloc(a3) == mloc(a2))
Ejemplo n.º 2
0
 def mloc(self):
     '''Memory location
     '''
     if self._recache:
         self._update_array_cache()
     return mloc(self._labels)
Ejemplo n.º 3
0
    def test_mloc(self, array: np.ndarray) -> None:

        x = util.mloc(array)
        self.assertTrue(isinstance(x, int))
Ejemplo n.º 4
0
 def mloc(self):
     return mloc(self.values)
Ejemplo n.º 5
0
 def mloc(self) -> int:
     '''{doc_int}
     '''
     if self._recache:
         self._update_array_cache()
     return mloc(self._labels)
Ejemplo n.º 6
0
    def test_mloc(self, array):

        x = util.mloc(array)
        self.assertTrue(isinstance(x, int))