LSSTApplications
19.0.0-14-gb0260a2+b89439f59d,20.0.0+126303c00d,20.0.0+2f3d0e5c40,20.0.0+36ef800059,20.0.0+6ab788e194,20.0.0+a788ff1d83,20.0.0+b545961afb,20.0.0+bebc1f60e8,20.0.0+e2e26847c2,20.0.0+ec00f03e9c,20.0.0-1-g10df615+b92a01c08d,20.0.0-1-g253301a+36ef800059,20.0.0-1-g2b7511a+bebc1f60e8,20.0.0-1-g4d801e7+7c74587066,20.0.0-1-g5b95a8c+3e2d406de1,20.0.0-1-g660595b+f45b7d88f4,20.0.0-1-gc96f8cb+665e8551f1,20.0.0-1-gd1c87d7+85c46248f3,20.0.0-1-gedffbd8+ca2c461684,20.0.0-14-g1ce627f+450400e286,20.0.0-16-g111fe95+665e8551f1,20.0.0-16-g233ea98+b7ef15a6f8,20.0.0-17-ga9337b4+235318a901,20.0.0-2-g4dae9ad+665e8551f1,20.0.0-2-g7818986+85c46248f3,20.0.0-2-gec03fae+ff10c6d78d,20.0.0-25-g38d2b7ae+6870ac0cf6,20.0.0-3-g4cc78c6+63636aeed8,20.0.0-3-g6a8623c+450400e286,20.0.0-3-g750bffe+50c7740d2d,20.0.0-4-gfea843c+f45b7d88f4,20.0.0-48-gd64a390+cf2ddfd0ca,20.0.0-5-g357b56b+f45b7d88f4,20.0.0-5-gfcebe35+806271b712,20.0.0-7-gc818c6e6+7d435f9f99,20.0.0-7-gcda7bf1+1884c7ddc6,20.0.0-9-g61a2a9a3d+14f89e4eca,w.2020.39
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | __init__ (self, iterable=None) |
def | load (cls, file, universe) |
def | save (self, file) |
def | quanta (self) |
def | quantaAsQgraph (self) |
def | countQuanta (self) |
def | traverse (self) |
Public Attributes | |
initInputs | |
initIntermediates | |
initOutputs | |
QuantumGraph is a sequence of `QuantumGraphTaskNodes` objects. Typically the order of the tasks in the list will be the same as the order of tasks in a pipeline (obviously depends on the code which constructs graph). Parameters ---------- iterable : iterable of `QuantumGraphTaskNodes`, optional Initial sequence of per-task nodes.
def lsst.pipe.base.graph.QuantumGraph.__init__ | ( | self, | |
iterable = None |
|||
) |
def lsst.pipe.base.graph.QuantumGraph.countQuanta | ( | self | ) |
Return total count of quanta in a graph. Returns ------- count : `int` Number of quanta in a graph.
def lsst.pipe.base.graph.QuantumGraph.load | ( | cls, | |
file, | |||
universe | |||
) |
Read QuantumGraph from a file that was made by `save`. Parameters ---------- file : `io.BufferedIOBase` File with pickle data open in binary mode. universe: `~lsst.daf.butler.DimensionUniverse` DimensionUniverse instance, not used by the method itself but needed to ensure that registry data structures are initialized. Returns ------- graph : `QuantumGraph` Resulting QuantumGraph instance. Raises ------ TypeError Raised if pickle contains instance of a type other than QuantumGraph. Notes ----- Reading Quanta from pickle requires existence of singleton DimensionUniverse which is usually instantiated during Registry initializaion. To make sure that DimensionUniverse exists this method accepts dummy DimensionUniverse argument.
def lsst.pipe.base.graph.QuantumGraph.quanta | ( | self | ) |
def lsst.pipe.base.graph.QuantumGraph.quantaAsQgraph | ( | self | ) |
def lsst.pipe.base.graph.QuantumGraph.save | ( | self, | |
file | |||
) |
def lsst.pipe.base.graph.QuantumGraph.traverse | ( | self | ) |
Return topologically ordered Quanta and their dependencies. This method iterates over all Quanta in topological order, enumerating them during iteration. Returned `QuantumIterData` object contains Quantum instance, its ``index`` and the ``index`` of all its prerequsites (Quanta that produce inputs for this Quantum): - the ``index`` values are generated by an iteration of a QuantumGraph, and are not intrinsic to the QuantumGraph - during iteration, each ID will appear in index before it ever appears in dependencies. Yields ------ quantumData : `QuantumIterData`
Definition at line 249 of file graph.py.