Skip to content
Snippets Groups Projects
Commit 69286c9b authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix JSON backend

parent 10f8f119
Branches
Tags
No related merge requests found
...@@ -21,13 +21,15 @@ def test_json_backend(): ...@@ -21,13 +21,15 @@ def test_json_backend():
a = sympy.Symbol('a') a = sympy.Symbol('a')
assignments = pystencils.AssignmentCollection({ assignments = pystencils.AssignmentCollection({
z[0, 0]: x[0, 0] * sympy.log(a * x[0, 0] * y[0, 0]) z[0, 0]: x[0, 0] * a * x[0, 0] * y[0, 0]
}) })
ast = pystencils.create_kernel(assignments) ast = pystencils.create_kernel(assignments)
print(print_json(ast)) pj = print_json(ast)
print(print_yaml(ast)) # print(pj)
py = print_yaml(ast)
# print(py)
temp_dir = tempfile.TemporaryDirectory() temp_dir = tempfile.TemporaryDirectory()
write_json(temp_dir.name + '/test.json', ast) write_json(temp_dir.name + '/test.json', ast)
......
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