BaseExposureInfo

class lsst.pipe.tasks.selectImages.BaseExposureInfo(dataId, coordList)

Bases: Struct

Data about a selected exposure.

Parameters:
dataIddict

Data ID keys of exposure.

coordListlist [lsst.afw.geom.SpherePoint]

ICRS coordinates of the corners of the exposure plus any others items that are desired.

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:
copyStruct

One-level-deep copy of this Struct.

getDict() dict[str, Any]

Get a dictionary of fields in this struct.

Returns:
structDictdict

Dictionary with field names as keys and field values as values. The values are shallow copies.

mergeItems(struct: Struct, *nameList: str) None

Copy specified fields from another struct, provided they don’t already exist.

Parameters:
structStruct

Struct from which to copy.

*nameListstr

All remaining arguments are names of items to copy.

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 and other.itemName2 into self.