Skip to content

Commit

Permalink
sympy update
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Jul 24, 2024
1 parent 11cd9b5 commit 9f0910c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion camb/symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,8 @@ def camb_fortran(expr, name='camb_function', frame='CDM', expand=False):
res = res.expand()
res = res.collect([Symbol(str(x.func)) for x in
[k, sigma, opacity, visibility, dopacity, dvisibility, ddvisibility]])
res = sympy.fcode(res, source_format='free', standard=95, assign_to=name, contract=False)
res = sympy.fcode(res, source_format='free', standard=95, assign_to=name, contract=False,
allow_unknown_functions=True)
import textwrap

if 'if ' not in res:
Expand Down

0 comments on commit 9f0910c

Please sign in to comment.