MCPcopy Create free account
hub / github.com/dask/dask / layer_info_dict

Method layer_info_dict

dask/highlevelgraph.py:311–325  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

309 )
310
311 def layer_info_dict(self):
312 info = {
313 "layer_type": type(self).__name__,
314 "is_materialized": self.is_materialized(),
315 "number of outputs": f"{len(self.get_output_keys())}",
316 }
317 if self.annotations is not None:
318 for key, val in self.annotations.items():
319 info[key] = html.escape(str(val))
320 if self.collection_annotations is not None:
321 for key, val in self.collection_annotations.items():
322 # Hide verbose chunk details from the HTML table
323 if key != "chunks":
324 info[key] = html.escape(str(val))
325 return info
326
327
328class MaterializedLayer(Layer):

Callers 1

_repr_html_Method · 0.95

Calls 3

is_materializedMethod · 0.95
get_output_keysMethod · 0.95
itemsMethod · 0.45

Tested by

no test coverage detected