lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.extended_psf.extended_psf_candidates.ExtendedPsfCandidates Class Reference
Inheritance diagram for lsst.pipe.tasks.extended_psf.extended_psf_candidates.ExtendedPsfCandidates:

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

Detailed Description

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.

Member Function Documentation

◆ metadata()

lsst.pipe.tasks.extended_psf.extended_psf_candidates.ExtendedPsfCandidates.metadata ( self)
Return the collection's global metadata as a dict.

◆ read_fits()

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`.

◆ ref_id_map()

lsst.pipe.tasks.extended_psf.extended_psf_candidates.ExtendedPsfCandidates.ref_id_map ( self)
Map reference IDs to `ExtendedPsfCandidate` objects.

◆ write_fits()

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.

Member Data Documentation

◆ _ref_id_map

dict lsst.pipe.tasks.extended_psf.extended_psf_candidates.ExtendedPsfCandidates._ref_id_map
protected
Initial value:
= {
candidate.star_info.ref_id: candidate
for candidate in self
if candidate.star_info.ref_id is not None
}

The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/extended_psf/extended_psf_candidates.py