Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixed some small things, which made that python examples did not run (brackets)
  • Loading branch information
SjoerdBruijn authored and pariterre committed Aug 19, 2024
1 parent 6f429ce commit 2c2adf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ To access the data, one can use the dictionary notation or the dot notation.
```python3
from ezc3d import c3d
c = c3d()
print(c['parameters']['POINT']['USED']['value'][0]
print(c.parameters.POINT.USED['value'][0]
print(c['parameters']['POINT']['USED']['value'][0])
print(c.parameters.POINT.USED['value'][0])
````
The dictionnary notation better reflects the internal structure of the C3D class, which makes it more reliable.
However, it is less convenient to use as one need to check the existing "keys" during programming.
Expand Down

0 comments on commit 2c2adf4

Please sign in to comment.