LSSTApplications
18.1.0
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | getColumnView (self) |
def | __getitem__ (self, key) |
def | __setitem__ (self, key, value) |
def | __delitem__ (self, key) |
def | append (self, record) |
def | insert (self, key, value) |
def | clear (self) |
def | addNew (self) |
def | cast (self, type_, deep=False) |
def | copy (self, deep=False) |
def | extend (self, iterable, deep=False, mapper=None) |
def | __reduce__ (self) |
def | asAstropy (self, cls=None, copy=False, unviewable="copy") |
Return an astropy.table.Table (or subclass thereof) view into this catalog. More... | |
def | __dir__ (self) |
def | __getattr__ (self, name) |
def | __str__ (self) |
def | __repr__ (self) |
def | __new__ (cls, name, bases, attrs) |
def | __call__ (cls, args, kwds) |
def | __subclasscheck__ (cls, subclass) |
def | __instancecheck__ (cls, instance) |
def | __subclasses__ (cls) |
def | register (cls, key, subclass) |
def | alias (cls, key, subclass) |
def | __iter__ (cls) |
def | __len__ (cls) |
def | __contains__ (cls, key) |
def | keys (cls) |
def | values (cls) |
def | items (cls) |
def | get (cls, key, default=None) |
Properties | |
columns = property(__getColumns, doc="a column view of the catalog") | |
Definition at line 94 of file baseContinued.py.
|
inherited |
Definition at line 293 of file wrappers.py.
|
inherited |
Definition at line 458 of file wrappers.py.
def lsst.afw.table.base.baseContinued.Catalog.__delitem__ | ( | self, | |
key | |||
) |
Definition at line 153 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.__dir__ | ( | self | ) |
This custom dir is necessary due to the custom getattr below. Without it, not all of the methods available are returned with dir. See DM-7199
Definition at line 302 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.__getattr__ | ( | self, | |
name | |||
) |
Definition at line 322 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.__getitem__ | ( | self, | |
key | |||
) |
Return the record at index key if key is an integer, return a column if key is a string field name or Key, or return a subset of the catalog if key is a slice or boolean NumPy array.
Definition at line 106 of file baseContinued.py.
|
inherited |
Definition at line 326 of file wrappers.py.
|
inherited |
Definition at line 452 of file wrappers.py.
|
inherited |
Definition at line 455 of file wrappers.py.
|
inherited |
Definition at line 261 of file wrappers.py.
def lsst.afw.table.base.baseContinued.Catalog.__reduce__ | ( | self | ) |
Definition at line 224 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.__repr__ | ( | self | ) |
Definition at line 342 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.__setitem__ | ( | self, | |
key, | |||
value | |||
) |
If ``key`` is an integer, set ``catalog[key]`` to ``value``. Otherwise select column ``key`` and set it to ``value``.
Definition at line 142 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.__str__ | ( | self | ) |
Definition at line 334 of file baseContinued.py.
|
inherited |
Definition at line 316 of file wrappers.py.
|
inherited |
Return a tuple of all classes that inherit from this class.
Definition at line 336 of file wrappers.py.
def lsst.afw.table.base.baseContinued.Catalog.addNew | ( | self | ) |
Definition at line 172 of file baseContinued.py.
|
inherited |
Add an alias that allows an existing subclass to be accessed with a different key.
Definition at line 429 of file wrappers.py.
def lsst.afw.table.base.baseContinued.Catalog.append | ( | self, | |
record | |||
) |
Definition at line 160 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.asAstropy | ( | self, | |
cls = None , |
|||
copy = False , |
|||
unviewable = "copy" |
|||
) |
Return an astropy.table.Table (or subclass thereof) view into this catalog.
[in] | cls | Table subclass to use; None implies astropy.table.Table itself. Use astropy.table.QTable to get Quantity columns. |
[in] | copy | Whether to copy data from the LSST catalog to the astropy table. Not copying is usually faster, but can keep memory from being freed if columns are later removed from the Astropy view. |
[in] | unviewable | One of the following options, indicating how to handle field types (string and Flag) for which views cannot be constructed:
|
Definition at line 228 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.cast | ( | self, | |
type_, | |||
deep = False |
|||
) |
Return a copy of the catalog with the given type, optionally cloning the table and deep-copying all records if deep==True.
Definition at line 176 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.clear | ( | self | ) |
Definition at line 168 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.copy | ( | self, | |
deep = False |
|||
) |
def lsst.afw.table.base.baseContinued.Catalog.extend | ( | self, | |
iterable, | |||
deep = False , |
|||
mapper = None |
|||
) |
Append all records in the given iterable to the catalog. Arguments: iterable ------ any Python iterable containing records deep ---------- if True, the records will be deep-copied; ignored if mapper is not None (that always implies True). mapper -------- a SchemaMapper object used to translate records
Definition at line 195 of file baseContinued.py.
|
inherited |
Return the subclass associated with the given key (including aliases), or ``default`` if the key is not recognized.
Definition at line 477 of file wrappers.py.
def lsst.afw.table.base.baseContinued.Catalog.getColumnView | ( | self | ) |
Definition at line 96 of file baseContinued.py.
def lsst.afw.table.base.baseContinued.Catalog.insert | ( | self, | |
key, | |||
value | |||
) |
Definition at line 164 of file baseContinued.py.
|
inherited |
|
inherited |
Return an iterable containing all keys (including aliases).
Definition at line 461 of file wrappers.py.
|
inherited |
Register a subclass of this ABC with the given key (a string, number, type, or other hashable). Register may only be called once for a given key or a given subclass.
Definition at line 344 of file wrappers.py.
|
inherited |
Return an iterable of registered subclasses, with duplicates corresponding to any aliases.
Definition at line 466 of file wrappers.py.
|
static |
Definition at line 104 of file baseContinued.py.