LSST Applications g04a91732dc+4e9d1bb4d4,g07dc498a13+80b84b0d75,g0fba68d861+a3d37dd3b5,g1409bbee79+80b84b0d75,g1a7e361dbc+80b84b0d75,g1fd858c14a+f9b84efad7,g21d47ad084+e8f6fde169,g26552ac397+b2f6e69793,g35bb328faa+fcb1d3bbc8,g42c1b31a95+a1301e4c20,g4d39ba7253+96615a71b2,g4e0f332c67+5d362be553,g53246c7159+fcb1d3bbc8,g60b5630c4e+96615a71b2,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g8852436030+0c48fa155f,g89139ef638+80b84b0d75,g8d6b6b353c+96615a71b2,g9125e01d80+fcb1d3bbc8,g989de1cb63+80b84b0d75,g9f33ca652e+ba3e8b6d33,ga9baa6287d+96615a71b2,ga9e4eb89a6+483a84333a,gaaedd4e678+80b84b0d75,gabe3b4be73+1e0a283bba,gb1101e3267+9cf12315a2,gb58c049af0+f03b321e39,gb90eeb9370+9524a345df,gc741bbaa4f+bb138d7846,gcf25f946ba+0c48fa155f,gd315a588df+6998285f25,gd6cbbdb0b4+c8606af20c,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+5b37c91063,ge278dab8ac+932305ba37,ge82c20c137+76d20ab76d,w.2025.10
LSST Data Management Base Package
Loading...
Searching...
No Matches
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 562 of file makeWarp.py.

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

◆ 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 573 of file makeWarp.py.

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