OpenStructure
Public Member Functions
TableRow Class Reference

Public Member Functions

def __init__ (self, row_data, tab)
 
def __getitem__ (self, col_name)
 
def __str__ (self)
 
def __len__ (self)
 
def __setitem__ (self, col_name, val)
 
def __getattr__ (self, col_name)
 
def __setattr__ (self, col_name, val)
 

Detailed Description

Essentially a named tuple, but allows column names that are not valid 
python variable names.

Definition at line 130 of file table.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  row_data,
  tab 
)

Definition at line 135 of file table.py.

Member Function Documentation

◆ __getattr__()

def __getattr__ (   self,
  col_name 
)

Definition at line 160 of file table.py.

◆ __getitem__()

def __getitem__ (   self,
  col_name 
)

Definition at line 139 of file table.py.

◆ __len__()

def __len__ (   self)

Definition at line 151 of file table.py.

◆ __setattr__()

def __setattr__ (   self,
  col_name,
  val 
)

Definition at line 165 of file table.py.

◆ __setitem__()

def __setitem__ (   self,
  col_name,
  val 
)

Definition at line 154 of file table.py.

◆ __str__()

def __str__ (   self)

Definition at line 144 of file table.py.


The documentation for this class was generated from the following file: