Skip to main content
Version: Next

LookUpTable1D

class compolyx.LookUpTable1D(obj, parent=None)

A LookUpTable to associate arbitrary data to a one-dimensional field of Locations.

Attributes

NameDescription
LookUpTable1D.activeLookUpTable active
LookUpTable1D.column_typesA list of column types ('scalar' or 'direction')
LookUpTable1D.columnsDictionary with all columns
LookUpTable1D.dimensions
LookUpTable1D.directionThe Direction of the Look Up Table
LookUpTable1D.emptyTrue if table is empty
LookUpTable1D.enabledWhether this object is currently enabled or not
LookUpTable1D.idID of object
LookUpTable1D.is_dict_itemSpecifies whether the object is an item of a dict
LookUpTable1D.is_list_itemSpecifies whether the object is an item of a list
LookUpTable1D.link_pathRoot path of the current node in the tree for links to this object
LookUpTable1D.location_column_name
LookUpTable1D.nameName of object
LookUpTable1D.num_colsNumber of rows
LookUpTable1D.num_rowsNumber of columns
LookUpTable1D.originThe Origin of the Look Up Table
LookUpTable1D.parentParent object in tree
LookUpTable1D.root_pathRoot path of the current node in the tree
LookUpTable1D.statusStatus of the object
LookUpTable1D.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
LookUpTable1D.tabular_dataa tuple containing a list of column labels and a 2d array with floats for all cells
LookUpTable1D.uidUID of object
LookUpTable1D.vector_column_suffix
LookUpTable1D.vertexThrows an error if the object has been removed from the graph

Methods

NameDescription
LookUpTable1D.clear()Clear table data (rows and columns)
LookUpTable1D.clear_rows()Clear table rows (keep columns)
LookUpTable1D.create_column(name[, type, ...])Create a new column
LookUpTable1D.find_parent(type)Steps up the tree and returns the first parent with given type
LookUpTable1D.load_from_csv_file(path)Load the table from .csv file in path
LookUpTable1D.obj_exists()Checks if __obj still references the C++ object (i.e. has not been reset to None by self._delete) and exists in the graph
LookUpTable1D.save_to_csv_file(path)Save LookUpTable to CSV file.
LookUpTable1D.serialize()
LookUpTable1D.serialize_name_and_id()Helper function to serialize name and ID
LookUpTable1D.update()
LookUpTable1D.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node