field_array.py 175 Bytes
Newer Older
1
2
3
# -*- coding: utf-8 -*-


4
from field_type import FieldType
5
6


theos's avatar
theos committed
7
class FieldArray(FieldType):
theos's avatar
theos committed
8
9
10
    @property
    def dim(self):
        return reduce(lambda x, y: x*y, self.shape)