Skip to content

Commit 9f0910c

Browse files
committed
sympy update
1 parent 11cd9b5 commit 9f0910c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

camb/symbolic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,8 @@ def camb_fortran(expr, name='camb_function', frame='CDM', expand=False):
690690
res = res.expand()
691691
res = res.collect([Symbol(str(x.func)) for x in
692692
[k, sigma, opacity, visibility, dopacity, dvisibility, ddvisibility]])
693-
res = sympy.fcode(res, source_format='free', standard=95, assign_to=name, contract=False)
693+
res = sympy.fcode(res, source_format='free', standard=95, assign_to=name, contract=False,
694+
allow_unknown_functions=True)
694695
import textwrap
695696

696697
if 'if ' not in res:

0 commit comments

Comments
 (0)