|
def | __init__ (self, io.IO[bytes] uriObject) |
|
QuantumGraph | load (self, Optional[Iterable[int]] nodes=None, Optional[str] graphID=None) |
|
def | close (self) |
|
Definition at line 313 of file _loadHelpers.py.
◆ __init__()
def lsst.pipe.base.graph._loadHelpers.OpenFileHandleHelper.__init__ |
( |
|
self, |
|
|
io.IO[bytes] |
uriObject |
|
) |
| |
◆ close()
def lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.close |
( |
|
self | ) |
|
|
inherited |
◆ load()
QuantumGraph lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.load |
( |
|
self, |
|
|
Optional[Iterable[int]] |
nodes = None , |
|
|
Optional[str] |
graphID = None |
|
) |
| |
|
inherited |
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.
◆ buffer
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.buffer |
|
inherited |
◆ headerSize
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.headerSize |
|
inherited |
◆ map
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.map |
|
inherited |
◆ save_version
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.save_version |
|
inherited |
◆ taskDefMap
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.taskDefMap |
|
inherited |
◆ uriObject
lsst.pipe.base.graph._loadHelpers.DefaultLoadHelper.uriObject |
|
inherited |
The documentation for this class was generated from the following file: