コード例 #1
0
ファイル: test_index.py プロジェクト: nekobon/static-frame
    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))
コード例 #2
0
ファイル: index_base.py プロジェクト: CrepeGoat/FEHnt
 def mloc(self):
     '''Memory location
     '''
     if self._recache:
         self._update_array_cache()
     return mloc(self._labels)
コード例 #3
0
ファイル: test_util.py プロジェクト: flexatone/static-frame
    def test_mloc(self, array: np.ndarray) -> None:

        x = util.mloc(array)
        self.assertTrue(isinstance(x, int))
コード例 #4
0
ファイル: series.py プロジェクト: bmcguirk/static-frame
 def mloc(self):
     return mloc(self.values)
コード例 #5
0
 def mloc(self) -> int:
     '''{doc_int}
     '''
     if self._recache:
         self._update_array_cache()
     return mloc(self._labels)
コード例 #6
0
    def test_mloc(self, array):

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