Skip to content

Commit

Permalink
fixed docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
hatomist committed Nov 1, 2024
1 parent f2e2d04 commit 78e5669
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion openlch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.8.0"
__version__ = "0.8.3"

from .hal import HAL
12 changes: 7 additions & 5 deletions openlch/hal.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def get_data(self) -> Dict[str, Dict[str, float]]:
Returns:
Dict[str, Dict[str, float]]: A dictionary containing gyroscope and accelerometer data:
{
'gyro': {'x': float, 'y': float, 'z': float}, # Angular velocity in degrees/second
'accel': {'x': float, 'y': float, 'z': float} # Linear acceleration in g
Expand Down Expand Up @@ -315,8 +316,8 @@ def upload_file(self, audio_data: bytes, format: str = "wav") -> Dict[str, Union
Returns:
Dict[str, Union[str, bool]]: A dictionary containing:
- 'audio_id': Identifier for the uploaded audio
- 'success': Boolean indicating upload success
- 'audio_id': Identifier for the uploaded audio
- 'success': Boolean indicating upload success
Raises:
Exception: If there's an error during upload
Expand Down Expand Up @@ -346,9 +347,10 @@ def get_recording(self) -> Tuple[bytes, str, int]:
Returns:
Tuple[bytes, str, int]: Tuple containing:
- bytes: The complete audio data
- str: Audio format
- int: Initial timestamp in milliseconds
- bytes: The complete audio data
- str: Audio format
- int: Initial timestamp in milliseconds
"""
audio_data = bytearray()
format_type = None
Expand Down

0 comments on commit 78e5669

Please sign in to comment.