Skip to content

Commit

Permalink
Add docstring and print for source_id=None.
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Dec 10, 2024
1 parent 6478d33 commit 1aba653
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pylsl/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def __init__(
source_id = str(
hash((name, type, channel_count, nominal_srate, channel_format))
)
print(
f"Generated source_id: '{source_id}' for StreamInfo with name '{name}', type '{type}', "
f"channel_count {channel_count}, nominal_srate {nominal_srate}, "
f"and channel_format {channel_format}."
)
self.obj = lib.lsl_create_streaminfo(
ctypes.c_char_p(str.encode(name)),
ctypes.c_char_p(str.encode(type)),
Expand Down

0 comments on commit 1aba653

Please sign in to comment.