MCPcopy Index your code
hub / github.com/pydata/xarray / set_numpy_options

Function set_numpy_options

xarray/core/formatting.py:650–656  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

648
649@contextlib.contextmanager
650def set_numpy_options(*args, **kwargs):
651 original = np.get_printoptions()
652 np.set_printoptions(*args, **kwargs)
653 try:
654 yield
655 finally:
656 np.set_printoptions(**original)
657
658
659def limit_lines(string: str, *, limit: int):

Callers 1

short_array_reprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…