LSST Applications
22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, Union[ButlerURI, io.IO[bytes]] uriObject) |
QuantumGraph | load (self, Optional[Iterable[int]] nodes=None, Optional[str] graphID=None) |
def | close (self) |
Public Attributes | |
uriObject | |
headerSize | |
save_version | |
taskDefMap | |
map | |
buffer | |
Default load helper for `QuantumGraph` save files This class, and its subclasses, are used to unpack a quantum graph save file. This file is a binary representation of the graph in a format that allows individual nodes to be loaded without needing to load the entire file. This default implementation has the interface to load select nodes from disk, but actually always loads the entire save file and simply returns what nodes (or all) are requested. This is intended to serve for all cases where there is a read method on the input parameter, but it is unknown how to read select bytes of the stream. It is the responsibility of sub classes to implement the method responsible for loading individual bytes from the stream. Parameters ---------- uriObject : `~lsst.daf.butler.ButlerURI` or `io.IO` of bytes This is the object that will be used to retrieve the raw bytes of the save. Raises ------ ValueError Raised if the specified file contains the wrong file signature and is not a `QuantumGraph` save
Definition at line 79 of file _loadHelpers.py.
def lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.__init__ | ( | self, | |
Union[ButlerURI, io.IO[bytes]] | uriObject | ||
) |
Definition at line 107 of file _loadHelpers.py.
def lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.close | ( | self | ) |
Cleans up an instance if needed. Base class does nothing
Reimplemented in lsst.pipe.base.graph._loadHelpers.FileLoadHelper.
Definition at line 272 of file _loadHelpers.py.
QuantumGraph lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.load | ( | self, | |
Optional[Iterable[int]] | nodes = None , |
||
Optional[str] | graphID = None |
||
) |
Loads in the specified nodes from the graph Load in the `QuantumGraph` containing only the nodes specified in the ``nodes`` parameter from the graph specified at object creation. If ``nodes`` is None (the default) the whole graph is loaded. Parameters ---------- nodes : `Iterable` of `int` or `None` The nodes to load from the graph, loads all if value is None (the default) graphID : `str` or `None` If specified this ID is verified against the loaded graph prior to loading any Nodes. This defaults to None in which case no validation is done. Returns ------- graph : `QuantumGraph` The loaded `QuantumGraph` object Raises ------ ValueError Raised if one or more of the nodes requested is not in the `QuantumGraph` or if graphID parameter does not match the graph being loaded.
Definition at line 163 of file _loadHelpers.py.
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.buffer |
Definition at line 269 of file _loadHelpers.py.
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.headerSize |
Definition at line 113 of file _loadHelpers.py.
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.map |
Definition at line 161 of file _loadHelpers.py.
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.save_version |
Definition at line 142 of file _loadHelpers.py.
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.taskDefMap |
Definition at line 154 of file _loadHelpers.py.
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.uriObject |
Definition at line 108 of file _loadHelpers.py.