Skip to content
Snippets Groups Projects
Commit 29266b82 authored by Martin Bauer's avatar Martin Bauer
Browse files

Full Cumulants support

- wrote a new, separate lattice model for cumulants
- tested with 2D LDC
parent bb265e0b
No related merge requests found
......@@ -15,6 +15,8 @@ def fastSubs(term, subsDict):
def visit(expr):
if expr in subsDict:
return subsDict[expr]
if not hasattr(expr, 'args'):
return expr
paramList = [visit(a) for a in expr.args]
return expr if not paramList else expr.func(*paramList)
return visit(term)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment