Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
duguyue100 committed Mar 16, 2024
1 parent 103ce9b commit 9f010e1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pyaer/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def obtain_device_info(self, handle: Any) -> None:
collects the general information about the device such as the width and height
of the camera or the serial number of the device.
# Args:
Args:
handle: a valid device handle that can be used with the other `libcaer`
functions, or `None` on error.
"""
Expand Down Expand Up @@ -545,10 +545,10 @@ def get_frame_event(
def get_imu6_event(self, packet_header: Any) -> tuple[np.ndarray, int]:
"""Get IMU6 event.
# Args:
Args:
packet_header: the header that represents a event packet
# Returns:
Returns:
events: a 2-D array that has the shape of (N, 8) where N is the number of
IMU6 events in the packet. Each row of the array consists a single IMU6
event. The first value is the timestamp of the event. The next three
Expand All @@ -566,10 +566,10 @@ def get_imu6_event(self, packet_header: Any) -> tuple[np.ndarray, int]:
def get_imu9_event(self, packet_header: Any) -> tuple[np.ndarray, int]:
"""Get IMU9 event.
# Args:
Args:
packet_header: the header that represents a event packet
# Returns:
Returns:
events: a 2-D array that has the shape of (N, 11) where N is the number of
IMU9 events in the packet. Each row of the array consists a single IMU9
event. The first value is the timestamp of the event. The next three
Expand All @@ -588,10 +588,10 @@ def get_imu9_event(self, packet_header: Any) -> tuple[np.ndarray, int]:
def get_spike_event(self, packet_header: Any) -> tuple[np.ndarray, int]:
"""Get Spike Event.
# Args:
Args:
packet_header: the header that represents a event packet
# Returns:
Returns:
events: a 2-D array that has the shape of (N, 4) where N is the number of
spike events in the packet. Each row of the array has a single spike
event. The first value is the timestamp of the event. The second value
Expand Down Expand Up @@ -625,7 +625,7 @@ def open( # type: ignore
) -> None:
"""Open a serial deivce.
# Args:
Args:
device_type: `libcaer.CAER_DEVICE_EDVS`,
device_id: a unique ID to identify the device from others. Will be used as
the source for EventPackets being generate from its data.
Expand Down

0 comments on commit 9f010e1

Please sign in to comment.