@@ -611,7 +611,8 @@ def create_table_index(self, key, **kwargs):
611
611
612
612
def groups (self ):
613
613
""" return a list of all the top-level nodes (that are not themselves a pandas storage object) """
614
- return [ g for g in self .handle .walkGroups () if getattr (g ._v_attrs ,'pandas_type' ,None ) or getattr (g ,'table' ,None ) ]
614
+ _tables ()
615
+ return [ g for g in self .handle .walkGroups () if getattr (g ._v_attrs ,'pandas_type' ,None ) or getattr (g ,'table' ,None ) or isinstance (g ,_table_mod .table .Table ) ]
615
616
616
617
def get_node (self , key ):
617
618
""" return the node with the key or None if it does not exist """
@@ -687,7 +688,8 @@ def error(t):
687
688
if pt is None :
688
689
if value is None :
689
690
690
- if getattr (group ,'table' ,None ):
691
+ _tables ()
692
+ if getattr (group ,'table' ,None ) or isinstance (group ,_table_mod .table .Table ):
691
693
pt = 'frame_table'
692
694
tt = 'generic_table'
693
695
else :
@@ -2551,8 +2553,6 @@ def write_data_chunk(self, indexes, mask, search, values):
2551
2553
self .table .append (rows )
2552
2554
self .table .flush ()
2553
2555
except (Exception ), detail :
2554
- import pdb
2555
- pdb .set_trace ()
2556
2556
raise Exception (
2557
2557
"tables cannot write this data -> %s" % str (detail ))
2558
2558
@@ -2675,6 +2675,10 @@ class GenericTable(AppendableFrameTable):
2675
2675
def pandas_type (self ):
2676
2676
return self .pandas_kind
2677
2677
2678
+ @property
2679
+ def storable (self ):
2680
+ return getattr (self .group ,'table' ,None ) or self .group
2681
+
2678
2682
def get_attrs (self ):
2679
2683
""" retrieve our attributes """
2680
2684
self .non_index_axes = []
0 commit comments