MCPcopy
hub / github.com/pydata/xarray / inline_sparse_repr

Function inline_sparse_repr

xarray/core/formatting.py:303–307  ·  view source on GitHub ↗

Similar to sparse.COO.__repr__, but without the redundant shape/dtype.

(array)

Source from the content-addressed store, hash-verified

301
302
303def inline_sparse_repr(array):
304 """Similar to sparse.COO.__repr__, but without the redundant shape/dtype."""
305 sparse_array_type = array_type("sparse")
306 assert isinstance(array, sparse_array_type), array
307 return f"<{type(array).__name__}: nnz={array.nnz:d}, fill_value={array.fill_value}>"
308
309
310def inline_variable_array_repr(var, max_width):

Callers 1

Calls 2

array_typeFunction · 0.90
typeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…