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

Method restore

numpy/f2py/symbolic.py:1336–1340  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

1334 r = r.strip()
1335
1336 def restore(r):
1337 # restores subexpressions marked with f2py @-names
1338 if isinstance(r, (list, tuple)):
1339 return type(r)(map(restore, r))
1340 return unreplace_parenthesis(r, raw_symbols_map)
1341
1342 # comma-separated tuple
1343 if ',' in r:

Callers

nothing calls this directly

Calls 1

unreplace_parenthesisFunction · 0.85

Tested by

no test coverage detected