(self)
| 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 | |
| 328 | class MaterializedLayer(Layer): |
no test coverage detected