def _get_band_graph_builder(self): current_node = self.graph[self.node_id] if current_node["process_id"] == "reduce": # TODO: check "dimension" of "reduce" in some way? callback_graph = current_node["arguments"]["reducer"]["callback"] return GraphBuilder.from_process_graph(callback_graph) return None
def _graph_merge(self, other_graph: Dict): newbuilder = self.builder.shallow_copy() merged = newbuilder.merge(GraphBuilder.from_process_graph(other_graph)) # TODO: properly update metadata as well? newCollection = ImageCollectionClient(self.node_id, merged, self.session, metadata=self.metadata) return newCollection