Home | Trees | Indices | Help |
|
---|
|
object --+ | list --+ | ColumnList
A list of column.Columns (or derived classes) that takes care that no duplicates (in name) occur.
If you add a field with the same dest to a ColumnList, the previous instance will be overwritten. The idea is that you can override ColumnList in, e.g., interfaces later on.
Also, two ColumnLists are considered equal if they contain the same names.
After construction, you should set the withinId attribute to something that will help make sense of error messages.
Instance Methods | |||
new empty list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
y in x
|
x==y
|
returns a deep copy of self. This means that all child structures are being copied. In that process, they receive a new parent, which is why you need to pass one in. |
adds the Column item to the data field list. It will overwrite a Column of the same name if such a thing is already in the list. Indices are updated.
|
remove first occurrence of value. Raises ValueError if the value is not present.
|
extend list by appending elements from the iterable
|
returns the column with name. It will raise a NotFoundError if no such column exists. |
returns the column with id. It will raise a NotFoundError if no such column exists. |
returns the column having utype. This should be unique, but this method does not check for uniqueness. |
retuns the single, unique column having ucd. It raises a ValueError if there is no such column or more than one. |
returns the single, unique column having one of ucds. This method has a confusing interface. It sole function is to help when there are multiple possible UCDs that may be interesting (like pos.eq.ra;meta.main and POS_EQ_RA_MAIN). It should only be used for such cases. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |