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

Method __call__

numpy/core/arrayprint.py:1324–1327  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

1322 super().__init__(x)
1323
1324 def __call__(self, x):
1325 if self.legacy <= 113:
1326 return self._format_non_nat(x)
1327 return super().__call__(x)
1328
1329 def _format_non_nat(self, x):
1330 return "'%s'" % datetime_as_string(x,

Callers

nothing calls this directly

Calls 2

_format_non_natMethod · 0.95
__call__Method · 0.45

Tested by

no test coverage detected