Skip to content
Snippets Groups Projects
Commit 6d54f2ca authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix a doctest

parent 2e54c7a0
No related merge requests found
......@@ -412,7 +412,7 @@ class SfgBasicComposer(SfgIComposer):
You can look at the expression's dependencies:
>>> sorted(expr.depends, key=lambda v: v.name)
[x: float, y: float, z: float]
[x: float32, y: float32, z: float32]
If you use an existing expression to create a larger one, the new expression
inherits all variables from its parts:
......@@ -421,7 +421,7 @@ class SfgBasicComposer(SfgIComposer):
>>> expr2
x + y * z + w
>>> sorted(expr2.depends, key=lambda v: v.name)
[w: float, x: float, y: float, z: float]
[w: float32, x: float32, y: float32, z: float32]
"""
return AugExpr.format(fmt, *deps, **kwdeps)
......
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