We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e88eac + cf15fa4 commit 28d969cCopy full SHA for 28d969c
src/pylsl/info.py
@@ -102,6 +102,16 @@ def __del__(self):
102
except Exception as e:
103
print(f"StreamInfo deletion triggered error: {e}")
104
105
+ def __str__(self):
106
+ return (
107
+ f"<StreamInfo name='{self.name()}', type='{self.type()}', "
108
+ f"channels={self.channel_count()}, srate={self.nominal_srate()}, "
109
+ f"format={self.channel_format()}, source_id='{self.source_id()}'>"
110
+ )
111
+
112
+ def __repr__(self):
113
+ return self.__str__()
114
115
# === Core Information (assigned at construction) ===
116
117
def name(self) -> str:
0 commit comments