@@ -1355,6 +1355,9 @@ class LegacyTable(Table):
1355
1355
_indexables = [Col (name = 'index' ),Col (name = 'column' , index_kind = 'columns_kind' ), DataCol (name = 'fields' , cname = 'values' , kind_attr = 'fields' ) ]
1356
1356
table_type = 'legacy'
1357
1357
1358
+ def write (self , ** kwargs ):
1359
+ raise Exception ("write operations are not allowed on legacy tables!" )
1360
+
1358
1361
def read (self , where = None ):
1359
1362
""" we have 2 indexable columns, with an arbitrary number of data axes """
1360
1363
@@ -1429,6 +1432,21 @@ def read(self, where=None):
1429
1432
1430
1433
return wp
1431
1434
1435
+ class LegacyFrameTable (LegacyTable ):
1436
+ """ support the legacy frame table """
1437
+ table_type = 'legacy_frame'
1438
+ def read (self , * args , ** kwargs ):
1439
+ return super (LegacyFrameTable , self ).read (* args , ** kwargs )['value' ]
1440
+
1441
+ class LegacyPanelTable (LegacyTable ):
1442
+ """ support the legacy panel table """
1443
+ table_type = 'legacy_panel'
1444
+
1445
+ class AppendableTable (LegacyTable ):
1446
+ """ suppor the new appendable table formats """
1447
+ _indexables = None
1448
+ table_type = 'appendable'
1449
+
1432
1450
def write (self , axes_to_index , obj , append = False , compression = None ,
1433
1451
complevel = None , min_itemsize = None , ** kwargs ):
1434
1452
@@ -1537,22 +1555,6 @@ def delete(self, where = None):
1537
1555
# return the number of rows removed
1538
1556
return ln
1539
1557
1540
-
1541
- class LegacyFrameTable (LegacyTable ):
1542
- """ support the legacy frame table """
1543
- table_type = 'legacy_frame'
1544
- def read (self , * args , ** kwargs ):
1545
- return super (LegacyFrameTable , self ).read (* args , ** kwargs )['value' ]
1546
-
1547
- class LegacyPanelTable (LegacyTable ):
1548
- """ support the legacy panel table """
1549
- table_type = 'legacy_panel'
1550
-
1551
- class AppendableTable (LegacyTable ):
1552
- """ suppor the new appendable table formats """
1553
- _indexables = None
1554
- table_type = 'appendable'
1555
-
1556
1558
class AppendableFrameTable (AppendableTable ):
1557
1559
""" suppor the new appendable table formats """
1558
1560
table_type = 'appendable_frame'
0 commit comments