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

Class ExperimentTable

source code

     object --+                
              |                
 ligolw.Element --+            
                  |            
ligolw.EmptyElement --+        
                      |        
           ligolw.Table --+    
                          |    
             object --+   |    
                      |   |    
                   list --+    
                          |    
                table.Table --+
                              |
                             ExperimentTable

Nested Classes [hide private]
  RowType
Helpful parent class for row objects.

Inherited from table.Table: TableName

Instance Methods [hide private]
 
get_expr_id(self, search_group, search, lars_id, instruments, gps_start_time, gps_end_time, comments=None)
Return the expr_def_id for the row in the table whose values match the givens.
source code
 
get_row_from_id(self, experiment_id)
Returns row in matching the given experiment_id.
source code
 
write_new_expr_id(self, search_group, search, lars_id, instruments, gps_start_time, gps_end_time, comments=None)
Creates a new def_id for the given arguments and returns it.
source code

Inherited from table.Table: __init__, appendColumn, appendRow, applyKeyMapping, copy, endElement, getColumnByName, removeChild, sync_next_id, unlink, updateKeyMapping

Inherited from ligolw.EmptyElement: appendData

Inherited from ligolw.Element: appendChild, end_tag, getAttribute, getChildrenByAttributes, getElements, getElementsByTagName, hasAttribute, insertBefore, removeAttribute, replaceChild, setAttribute, start_tag, write

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from table.Table: CheckElement, CheckProperties, getTablesByName, get_next_id, get_table, reset_next_id, set_next_id

Inherited from ligolw.Element: validattributes

Class Variables [hide private]
  constraints = 'PRIMARY KEY (experiment_id)'
hash(x)
  next_id = <glue.ligolw.ilwd.experiment_experiment_id_class obj...
hash(x)
  tableName = 'experiment'
  validcolumns = {'comments': 'lstring', 'experiment_id': 'ilwd:...
hash(x)

Inherited from table.Table: how_to_index, interncolumns, loadcolumns

Inherited from ligolw.Table: tagName, validchildren

Inherited from list: __hash__

Properties [hide private]

Inherited from table.Table: Name

Inherited from ligolw.Table: Type

Inherited from object: __class__

Method Details [hide private]

get_expr_id(self, search_group, search, lars_id, instruments, gps_start_time, gps_end_time, comments=None)

source code 

Return the expr_def_id for the row in the table whose values match the givens. If a matching row is not found, returns None.

write_new_expr_id(self, search_group, search, lars_id, instruments, gps_start_time, gps_end_time, comments=None)

source code 

Creates a new def_id for the given arguments and returns it. If an entry already exists with these, will just return that id.


Class Variable Details [hide private]

next_id

hash(x)

Value:
<glue.ligolw.ilwd.experiment_experiment_id_class object at 0x7f3904171\
478>

validcolumns

hash(x)

Value:
{'comments': 'lstring',
 'experiment_id': 'ilwd:char',
 'gps_end_time': 'int_4s',
 'gps_start_time': 'int_4s',
 'instruments': 'lstring',
 'lars_id': 'lstring',
 'search': 'lstring',
 'search_group': 'lstring'}