|
lsst.pipe.tasks gd5638573c2+392ae78cd2
|
Public Member Functions | |
| __init__ (self, Sequence[ExtendedPsfCandidate] candidates, dict[str, MetadataValue]|None metadata=None) | |
| __len__ (self) | |
| __getitem__ (self, index) | |
| __iter__ (self) | |
| str | __str__ (self) |
| metadata (self) | |
| ref_id_map (self) | |
| ExtendedPsfCandidates | read_fits (cls, ResourcePathExpression url) |
| None | write_fits (self, str filename) |
| ExtendedPsfCandidatesSerializationModel | serialize (self, OutputArchive[Any] archive) |
Static Protected Member Functions | |
| type[ExtendedPsfCandidatesSerializationModel[P]] | _get_archive_tree_type (type[P] pointer_type) |
Protected Attributes | |
| _candidates = list(candidates) | |
| dict | _metadata = {} if metadata is None else dict(metadata) |
| dict | _ref_id_map |
A collection of star cutouts.
Parameters
----------
candidates : `Iterable` [`ExtendedPsfCandidate`]
Collection of `ExtendedPsfCandidate` instances.
metadata : `dict` [`str`, `MetadataValue`], optional
Global metadata associated with the collection.
Attributes
----------
metadata : `dict` [`str`, `MetadataValue`]
Global metadata associated with the collection.
ref_id_map : `dict` [`int`, `ExtendedPsfCandidate`]
A mapping from reference IDs to `ExtendedPsfCandidate` objects.
Only includes candidates with valid reference IDs.
| lsst.pipe.tasks.extended_psf.extended_psf_candidates.ExtendedPsfCandidates.metadata | ( | self | ) |
Return the collection's global metadata as a dict.
| ExtendedPsfCandidates lsst.pipe.tasks.extended_psf.extended_psf_candidates.ExtendedPsfCandidates.read_fits | ( | cls, | |
| ResourcePathExpression | url ) |
Read a collection from a FITS file.
Parameters
----------
url
URL of the file to read; may be any type supported by
`lsst.resources.ResourcePath`.
| lsst.pipe.tasks.extended_psf.extended_psf_candidates.ExtendedPsfCandidates.ref_id_map | ( | self | ) |
Map reference IDs to `ExtendedPsfCandidate` objects.
| None lsst.pipe.tasks.extended_psf.extended_psf_candidates.ExtendedPsfCandidates.write_fits | ( | self, | |
| str | filename ) |
Write the collection to a FITS file.
Parameters
----------
filename
Name of the file to write to. Must not already exist.
|
protected |