MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / split

Method split

dedalus/core/operators.py:259–264  ·  view source on GitHub ↗

Split into expressions containing and not containing specified operands/operators.

(self, *vars)

Source from the content-addressed store, hash-verified

257class NonlinearOperator(Future):
258
259 def split(self, *vars):
260 """Split into expressions containing and not containing specified operands/operators."""
261 if self.has(*vars):
262 return (self, 0)
263 else:
264 return (0, self)
265
266 def expand(self, *vars):
267 """Expand expression over specified variables."""

Callers

nothing calls this directly

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected