1
1
from numpy cimport ndarray, dtype
2
2
3
3
4
- cdef class AbstractChunk :
4
+ cdef class BaseChunk :
5
5
cdef object _fill_value
6
6
cdef char * _cname
7
7
cdef int _clevel
@@ -16,7 +16,7 @@ cdef class AbstractChunk:
16
16
cdef void put(self , char * source)
17
17
18
18
19
- cdef class Chunk(AbstractChunk ):
19
+ cdef class Chunk(BaseChunk ):
20
20
cdef char * _data
21
21
cdef size_t _nbytes
22
22
cdef size_t _blocksize
@@ -28,8 +28,10 @@ cdef class SynchronizedChunk(Chunk):
28
28
cdef object _lock
29
29
30
30
31
- cdef class PersistentChunk(AbstractChunk ):
31
+ cdef class PersistentChunk(BaseChunk ):
32
32
cdef object _path
33
+ cdef object _basename
34
+ cdef object _dirname
33
35
cdef dict read_header(self )
34
36
cdef bytes read(self )
35
37
cdef void write(self , bytes data)
@@ -40,7 +42,7 @@ cdef class SynchronizedPersistentChunk(PersistentChunk):
40
42
pass
41
43
42
44
43
- cdef class AbstractArray :
45
+ cdef class BaseArray :
44
46
cdef tuple _shape
45
47
cdef tuple _chunks
46
48
cdef dtype _dtype
@@ -53,14 +55,14 @@ cdef class AbstractArray:
53
55
cdef object _fill_value
54
56
# override in sub-classes
55
57
cdef void init_chunks(self )
56
- cdef AbstractChunk create_chunk(self , tuple cidx)
57
- cdef AbstractChunk get_chunk(self , tuple cidx)
58
+ cdef BaseChunk create_chunk(self , tuple cidx)
59
+ cdef BaseChunk get_chunk(self , tuple cidx)
58
60
59
61
60
- cdef class Array(AbstractArray ):
62
+ cdef class Array(BaseArray ):
61
63
pass
62
64
63
65
64
- cdef class PersistentArray(AbstractArray ):
66
+ cdef class PersistentArray(BaseArray ):
65
67
cdef object _mode
66
68
cdef object _path
0 commit comments