LSST Applications g00274db5b6+edbf708997,g00d0e8bbd7+edbf708997,g199a45376c+5137f08352,g1fd858c14a+1d4b6db739,g262e1987ae+f4d9505c4f,g29ae962dfc+7156fb1a53,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3e17d7035e+5b3adc59f5,g3fd5ace14f+852fa6fbcb,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+9f17e571f4,g67b6fd64d1+6dc8069a4c,g74acd417e5+ae494d68d9,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+536efcc10a,g7cc15d900a+d121454f8d,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d7436a09f+28c28d8d6d,g8ea07a8fe4+db21c37724,g92c671f44c+9f17e571f4,g98df359435+b2e6376b13,g99af87f6a8+b0f4ad7b8d,gac66b60396+966efe6077,gb88ae4c679+7dec8f19df,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gc24b5d6ed1+9f17e571f4,gca7fc764a6+6dc8069a4c,gcc769fe2a4+97d0256649,gd7ef33dd92+6dc8069a4c,gdab6d2f7ff+ae494d68d9,gdbb4c4dda9+9f17e571f4,ge410e46f29+6dc8069a4c,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
Loading...
Searching...
No Matches
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 67 of file isrTask.py.

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