Loading [MathJax]/extensions/tex2jax.js
LSST Applications g0fba68d861+05816baf74,g1ec0fe41b4+f536777771,g1fd858c14a+a9301854fb,g35bb328faa+fcb1d3bbc8,g4af146b050+a5c07d5b1d,g4d2262a081+6e5fcc2a4e,g53246c7159+fcb1d3bbc8,g56a49b3a55+9c12191793,g5a012ec0e7+3632fc3ff3,g60b5630c4e+ded28b650d,g67b6fd64d1+ed4b5058f4,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g8352419a5c+fcb1d3bbc8,g87b7deb4dc+7b42cf88bf,g8852436030+e5453db6e6,g89139ef638+ed4b5058f4,g8e3bb8577d+d38d73bdbd,g9125e01d80+fcb1d3bbc8,g94187f82dc+ded28b650d,g989de1cb63+ed4b5058f4,g9d31334357+ded28b650d,g9f33ca652e+50a8019d8c,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+d9fb1f8026,gb58c049af0+f03b321e39,gb665e3612d+2a0c9e9e84,gb89ab40317+ed4b5058f4,gcf25f946ba+e5453db6e6,gd6cbbdb0b4+bb83cc51f8,gdd1046aedd+ded28b650d,gde0f65d7ad+941d412827,ge278dab8ac+d65b3c2b70,ge410e46f29+ed4b5058f4,gf23fb2af72+b7cae620c0,gf5e32f922b+fcb1d3bbc8,gf67bdafdda+ed4b5058f4,w.2025.16
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
lsst.ip.isr.isrTask Namespace Reference

Classes

class  FakeAmp
 
class  IsrTask
 
class  IsrTaskConfig
 
class  IsrTaskConnections
 

Functions

 crosstalkSourceLookup (datasetType, registry, quantumDataId, collections)
 

Function Documentation

◆ crosstalkSourceLookup()

lsst.ip.isr.isrTask.crosstalkSourceLookup ( datasetType,
registry,
quantumDataId,
collections )
Lookup function to identify crosstalkSource entries.

This should return an empty list under most circumstances.  Only
when inter-chip crosstalk has been identified should this be
populated.

Parameters
----------
datasetType : `str`
    Dataset to lookup.
registry : `lsst.daf.butler.Registry`
    Butler registry to query.
quantumDataId : `lsst.daf.butler.DataCoordinate`
    Expanded data id to transform to identify crosstalkSources.  The
    ``detector`` entry will be stripped.
collections : `lsst.daf.butler.CollectionSearch`
    Collections to search through.

Returns
-------
results : `list` [`lsst.daf.butler.DatasetRef`]
    List of datasets that match the query that will be used as
    crosstalkSources.

Definition at line 65 of file isrTask.py.

65def crosstalkSourceLookup(datasetType, registry, quantumDataId, collections):
66 """Lookup function to identify crosstalkSource entries.
67
68 This should return an empty list under most circumstances. Only
69 when inter-chip crosstalk has been identified should this be
70 populated.
71
72 Parameters
73 ----------
74 datasetType : `str`
75 Dataset to lookup.
76 registry : `lsst.daf.butler.Registry`
77 Butler registry to query.
78 quantumDataId : `lsst.daf.butler.DataCoordinate`
79 Expanded data id to transform to identify crosstalkSources. The
80 ``detector`` entry will be stripped.
81 collections : `lsst.daf.butler.CollectionSearch`
82 Collections to search through.
83
84 Returns
85 -------
86 results : `list` [`lsst.daf.butler.DatasetRef`]
87 List of datasets that match the query that will be used as
88 crosstalkSources.
89 """
90 newDataId = quantumDataId.subset(registry.dimensions.conform(["instrument", "exposure"]))
91 results = set(registry.queryDatasets(datasetType, collections=collections, dataId=newDataId,
92 findFirst=True))
93 # In some contexts, calling `.expanded()` to expand all data IDs in the
94 # query results can be a lot faster because it vectorizes lookups. But in
95 # this case, expandDataId shouldn't need to hit the database at all in the
96 # steady state, because only the detector record is unknown and those are
97 # cached in the registry.
98 records = {k: newDataId.records[k] for k in newDataId.dimensions.elements}
99 return [ref.expanded(registry.expandDataId(ref.dataId, records=records)) for ref in results]
100
101