Package glue :: Package ligolw :: Module lsctables :: Class SegmentSum
[hide private]
[frames] | no frames]

Class SegmentSum

source code

         object --+        
                  |        
table.Table.RowType --+    
                      |    
                Segment --+
                          |
                         SegmentSum

Helpful parent class for row objects. Also used as the default row class by Table instances. Provides an __init__() method that accepts keyword arguments from which the object's attributes are initialized.

Example:

>>> x = Table.RowType(a = 0.0, b = "test", c = True)
>>> x.a
0.0
>>> x.b
'test'
>>> x.c
True

Also provides .__getstate__() and .__setstate__() methods to allow row objects to be pickled (otherwise, because they all use __slots__ to reduce their memory footprint, they aren't pickleable).

Instance Methods [hide private]

Inherited from Segment: __abs__, __cmp__, __contains__, __getitem__, __init__, __len__, __nonzero__, get, set

Inherited from table.Table.RowType: __getstate__, __setstate__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from Segment: end, segment, start

Properties [hide private]
  comment
  creator_db
  end_time
  end_time_ns
  process_id
  segment_def_cdb
  segment_def_id
  segment_sum_id
  start_time
  start_time_ns

Inherited from Segment: segment_id

Inherited from object: __class__