Fixed readme example

This commit is contained in:
Nicolas Kruse 2025-11-09 22:02:21 +01:00
parent 519f5af66c
commit 5cd42f4902
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ tg.run()
# Read the results
print("Result c:", tg.read_value(c))
print("Result d:", tg.read_value(d))
print("Result e:", tg.read_value(d))
print("Result e:", tg.read_value(e))
```
## Developer Guide

View File

@ -19,7 +19,7 @@ def test_readme_example():
# Read the results
print("Result c:", tg.read_value(c))
print("Result d:", tg.read_value(d))
print("Result e:", tg.read_value(d))
print("Result e:", tg.read_value(e))
# Assertions to verify correctness
assert tg.read_value(c) == pytest.approx(0.25 + 0.87 * 2.0, 0.001) # pyright: ignore[reportUnknownMemberType]