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

Method __call__

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

Source from the content-addressed store, hash-verified

1265 )
1266
1267 def __call__(self, x):
1268 r = self.real_format(x.real)
1269 i = self.imag_format(x.imag)
1270
1271 # add the 'j' before the terminal whitespace in i
1272 sp = len(i.rstrip())
1273 i = i[:sp] + 'j' + i[sp:]
1274
1275 return r + i
1276
1277
1278class _TimelikeFormat:

Callers

nothing calls this directly

Calls 1

rstripMethod · 0.80

Tested by

no test coverage detected