Skip to content

Commit

Permalink
Fix docstring of EventSeeker, fixes #768 (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe authored Jan 4, 2019
1 parent 4d44bc9 commit 9fd0d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctapipe/io/eventseeker.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ class EventSeeker(Component):
To obtain a particular event in a hessio file:
>>> from ctapipe.io.hessioeventsource import SimTelEventSource
>>> event_source = SimTelEventSource(input_path="/path/to/file")
>>> event_source = SimTelEventSource(input_url="/path/to/file")
>>> seeker = EventSeeker(event_source=event_source)
>>> event = seeker[2]
>>> print(event.count)
To obtain a particular event in a hessio file from its event_id:
>>> from ctapipe.io.hessioeventsource import SimTelEventSource
>>> event_source = SimTelEventSource(input_path="/path/to/file")
>>> event_source = SimTelEventSource(input_url="/path/to/file")
>>> seeker = EventSeeker(event_source=event_source)
>>> event = seeker["101"]
>>> print(event.count)
Expand Down

0 comments on commit 9fd0d4f

Please sign in to comment.