Coverage for src/hdmf/common/io/alignedtable.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.2.5, created at 2023-08-18 20:49 +0000

1from .. import register_map 

2from ..alignedtable import AlignedDynamicTable 

3from .table import DynamicTableMap 

4 

5 

6@register_map(AlignedDynamicTable) 

7class AlignedDynamicTableMap(DynamicTableMap): 

8 """ 

9 Customize the mapping for AlignedDynamicTable 

10 """ 

11 def __init__(self, spec): 

12 super().__init__(spec) 

13 # By default the DynamicTables contained as sub-categories in the AlignedDynamicTable are mapped to 

14 # the 'dynamic_tables' class attribute. This renames the attribute to 'category_tables' 

15 self.map_spec('category_tables', spec.get_data_type('DynamicTable'))