BaseExposureInfo¶
- class lsst.pipe.tasks.selectImages.BaseExposureInfo(dataId, coordList)¶
Bases:
Struct
Data about a selected exposure.
- Parameters:
Methods Summary
copy
()Make a one-level-deep copy (values are not copied).
getDict
()Get a dictionary of fields in this struct.
mergeItems
(struct, *nameList)Copy specified fields from another struct, provided they don't already exist.
Methods Documentation
- copy() Struct ¶
Make a one-level-deep copy (values are not copied).
- Returns:
- copy
Struct
One-level-deep copy of this Struct.
- copy
- getDict() dict[str, Any] ¶
Get a dictionary of fields in this struct.
- Returns:
- structDict
dict
Dictionary with field names as keys and field values as values. The values are shallow copies.
- structDict
- mergeItems(struct: Struct, *nameList: str) None ¶
Copy specified fields from another struct, provided they don’t already exist.
- Parameters:
- struct
Struct
Struct
from which to copy.- *nameList
str
All remaining arguments are names of items to copy.
- struct
- Raises:
- RuntimeError
Raised if any item in nameList already exists in self (but any items before the conflicting item in nameList will have been copied).
Examples
For example:
foo.copyItems(other, "itemName1", "itemName2")
copies
other.itemName1
andother.itemName2
into self.