MCPcopy Create free account
hub / github.com/numpy/numpy / __str__

Method __str__

numpy/ma/core.py:6404–6413  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6402 self._mask[indx] = getattr(value, "_mask", False)
6403
6404 def __str__(self):
6405 m = self._mask
6406 if m is nomask:
6407 return str(self._data)
6408
6409 rdtype = _replace_dtype_fields(self._data.dtype, "O")
6410 data_arr = super()._data
6411 res = data_arr.astype(rdtype)
6412 _recursive_printoption(res, self._mask, masked_print_option)
6413 return str(res)
6414
6415 __repr__ = __str__
6416

Callers 1

random.pyFile · 0.45

Calls 3

_replace_dtype_fieldsFunction · 0.85
_recursive_printoptionFunction · 0.85
astypeMethod · 0.80

Tested by

no test coverage detected