Loading [MathJax]/extensions/tex2jax.js
LSST Applications g00d24c3146+07134a258f,g0fba68d861+c6b9c001b5,g1ec0fe41b4+f536777771,g1fd858c14a+958e7c0317,g216c3ac8a7+c5d9439d40,g35bb328faa+fcb1d3bbc8,g4d2262a081+0aed3363b2,g53246c7159+fcb1d3bbc8,g56a49b3a55+a44ca4bdea,g5a012ec0e7+3632fc3ff3,g60b5630c4e+07134a258f,g67b6fd64d1+ed4b5058f4,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g8180f54f50+a220987f6f,g8352419a5c+fcb1d3bbc8,g8852436030+bef424d5ca,g89139ef638+ed4b5058f4,g9125e01d80+fcb1d3bbc8,g94187f82dc+07134a258f,g989de1cb63+ed4b5058f4,g9ccd5d7f00+b7cae620c0,g9d31334357+07134a258f,g9f33ca652e+31a8ea3a30,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+c50a309191,gb58c049af0+f03b321e39,gb89ab40317+ed4b5058f4,gc0af124501+69caa252ab,gcf25f946ba+bef424d5ca,gd6cbbdb0b4+bb83cc51f8,gdd6d3460e7+d236de904b,gde0f65d7ad+d50ffb433c,ge278dab8ac+d65b3c2b70,ge410e46f29+ed4b5058f4,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.pipe.tasks.makeWarp Namespace Reference

Classes

class  MakeWarpConnections
 

Functions

 getWarpTypeList (self)
 
 reorderRefs (inputRefs, outputSortKeyOrder, dataIdKey)
 

Variables

 log = logging.getLogger(__name__)
 
 bgSubtracted
 

Function Documentation

◆ getWarpTypeList()

lsst.pipe.tasks.makeWarp.getWarpTypeList ( self)
Return list of requested warp types per the config.

Definition at line 559 of file makeWarp.py.

559 def getWarpTypeList(self):
560 """Return list of requested warp types per the config.
561 """
562 warpTypeList = []
563 if self.config.makeDirect:
564 warpTypeList.append("direct")
565 if self.config.makePsfMatched:
566 warpTypeList.append("psfMatched")
567 return warpTypeList
568
569

◆ reorderRefs()

lsst.pipe.tasks.makeWarp.reorderRefs ( inputRefs,
outputSortKeyOrder,
dataIdKey )
Reorder inputRefs per outputSortKeyOrder.

Any inputRefs which are lists will be resorted per specified key e.g.,
'detector.' Only iterables will be reordered, and values can be of type
`lsst.pipe.base.connections.DeferredDatasetRef` or
`lsst.daf.butler.core.datasets.ref.DatasetRef`.

Returned lists of refs have the same length as the outputSortKeyOrder.
If an outputSortKey not in the inputRef, then it will be padded with None.
If an inputRef contains an inputSortKey that is not in the
outputSortKeyOrder it will be removed.

Parameters
----------
inputRefs : `lsst.pipe.base.connections.QuantizedConnection`
    Input references to be reordered and padded.
outputSortKeyOrder : `iterable`
    Iterable of values to be compared with inputRef's dataId[dataIdKey].
dataIdKey : `str`
    The data ID key in the dataRefs to compare with the outputSortKeyOrder.

Returns
-------
inputRefs : `lsst.pipe.base.connections.QuantizedConnection`
    Quantized Connection with sorted DatasetRef values sorted if iterable.

Definition at line 570 of file makeWarp.py.

570def reorderRefs(inputRefs, outputSortKeyOrder, dataIdKey):
571 """Reorder inputRefs per outputSortKeyOrder.
572
573 Any inputRefs which are lists will be resorted per specified key e.g.,
574 'detector.' Only iterables will be reordered, and values can be of type
575 `lsst.pipe.base.connections.DeferredDatasetRef` or
576 `lsst.daf.butler.core.datasets.ref.DatasetRef`.
577
578 Returned lists of refs have the same length as the outputSortKeyOrder.
579 If an outputSortKey not in the inputRef, then it will be padded with None.
580 If an inputRef contains an inputSortKey that is not in the
581 outputSortKeyOrder it will be removed.
582
583 Parameters
584 ----------
585 inputRefs : `lsst.pipe.base.connections.QuantizedConnection`
586 Input references to be reordered and padded.
587 outputSortKeyOrder : `iterable`
588 Iterable of values to be compared with inputRef's dataId[dataIdKey].
589 dataIdKey : `str`
590 The data ID key in the dataRefs to compare with the outputSortKeyOrder.
591
592 Returns
593 -------
594 inputRefs : `lsst.pipe.base.connections.QuantizedConnection`
595 Quantized Connection with sorted DatasetRef values sorted if iterable.
596 """
597 for connectionName, refs in inputRefs:
598 if isinstance(refs, Iterable):
599 if hasattr(refs[0], "dataId"):
600 inputSortKeyOrder = [ref.dataId[dataIdKey] for ref in refs]
601 else:
602 inputSortKeyOrder = [handle.datasetRef.dataId[dataIdKey] for handle in refs]
603 if inputSortKeyOrder != outputSortKeyOrder:
604 setattr(inputRefs, connectionName,
605 reorderAndPadList(refs, inputSortKeyOrder, outputSortKeyOrder))
606 return inputRefs

Variable Documentation

◆ bgSubtracted

lsst.pipe.tasks.makeWarp.bgSubtracted

Definition at line 60 of file makeWarp.py.

◆ log

lsst.pipe.tasks.makeWarp.log = logging.getLogger(__name__)

Definition at line 44 of file makeWarp.py.