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

Function legacy_125

numpy/_core/tests/test_arrayprint.py:1296–1311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1294 assert po['precision'] == 12
1295
1296 async def legacy_125():
1297 np.set_printoptions(legacy='1.25', precision=7)
1298 await b.wait()
1299 po = np.get_printoptions()
1300 assert po['legacy'] == '1.25'
1301 assert po['precision'] == 7
1302 orig_linewidth = po['linewidth']
1303 with np.printoptions(linewidth=6, legacy='1.13'):
1304 po = np.get_printoptions()
1305 assert po['legacy'] == '1.13'
1306 assert po['precision'] == 7
1307 assert po['linewidth'] == 6
1308 po = np.get_printoptions()
1309 assert po['linewidth'] == orig_linewidth
1310 assert po['legacy'] == '1.25'
1311 assert po['precision'] == 7
1312
1313 async def main():
1314 await asyncio.gather(legacy_125(), legacy_125())

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…