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

Method substitute

numpy/f2py/symbolic.py:1290–1296  ·  view source on GitHub ↗
(self, symbols_map)

Source from the content-addressed store, hash-verified

1288 self.right = right
1289
1290 def substitute(self, symbols_map):
1291 left, right = self.left, self.right
1292 if isinstance(left, Expr):
1293 left = left.substitute(symbols_map)
1294 if isinstance(right, Expr):
1295 right = right.substitute(symbols_map)
1296 return _Pair(left, right)
1297
1298 def __repr__(self):
1299 return f'{type(self).__name__}({self.left}, {self.right})'

Callers

nothing calls this directly

Calls 2

_PairClass · 0.85
substituteMethod · 0.45

Tested by

no test coverage detected