Skip to content

Commit

Permalink
Merge pull request #60 from takeoverjp/fix_readme_example
Browse files Browse the repository at this point in the history
doc: fix example of DLTFile
  • Loading branch information
yen3 authored Aug 31, 2023
2 parents 011f6d4 + 5ba745f commit 809af0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ Here are examples of some interesting ways to use these classes:

```python
>>> from dlt import dlt
>>> # DLTFile object can be obtained by lading a trace file
>>> # DLTFile object can be obtained by loading a trace file
>>> d = dlt.load("high_full_trace.dlt")
>>> d.generate_index() # Read the whole trace file and generate its index
>>> print(d.counter_total) # number of DLT messages in the file
...
>>> print(d[0]) # messages can be indexed
Expand Down

0 comments on commit 809af0d

Please sign in to comment.