MCPcopy Index your code
hub / github.com/numpy/numpy / __call__

Method __call__

numpy/_core/arrayprint.py:1363–1371  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

1361 )
1362
1363 def __call__(self, x):
1364 r = self.real_format(x.real)
1365 i = self.imag_format(x.imag)
1366
1367 # add the 'j' before the terminal whitespace in i
1368 sp = len(i.rstrip())
1369 i = i[:sp] + 'j' + i[sp:]
1370
1371 return r + i
1372
1373
1374class _TimelikeFormat:

Callers

nothing calls this directly

Calls 1

rstripMethod · 0.80

Tested by

no test coverage detected