dacapo.gp.dacapo_points_source
Module Contents
Classes
A provider for serving graph data in gunpowder pipelines. |
- class dacapo.gp.dacapo_points_source.GraphSource(key: gunpowder.GraphKey, graph: gunpowder.Graph)
A provider for serving graph data in gunpowder pipelines.
The Graph Source loads a single graph to serve to the pipeline based on ROI requests it receives.
- key
The key of the graph to be served.
- Type:
gp.GraphKey
- graph
The graph to be served.
- Type:
gp.Graph
- setup()
Set up the provider. This function sets the provider to provide the graph with the given key.
- provide(request)
Provides the graph for the requested ROI.
This method will be passively called by gunpowder to get a batch. Depending on the request we provide a subgraph of our data, or nothing at all.
- Parameters:
request (gp.BatchRequest) – BatchRequest with the same ROI for
graph. (each requested array and) –
- Returns:
The graph contained in a Batch.
- Return type:
outputs (gp.Batch)