There was an error while loading. Please reload this page.
2 parents 37e6122 + 38d95a3 commit 1f95860Copy full SHA for 1f95860
1 file changed
src/pylsl/info.py
@@ -319,10 +319,10 @@ def get_channel_units(self) -> typing.Optional[list[typing.Optional[str]]]:
319
320
def _get_channel_info(self, name) -> typing.Optional[list[typing.Optional[str]]]:
321
"""Get the 'channel/name' element in the XML tree."""
322
- if self.desc().child("channels").empty():
+ channels = self.desc().child("channels")
323
+ if channels.empty():
324
return None
325
ch_infos = list()
- channels = self.desc().child("channels")
326
ch = channels.child("channel")
327
while not ch.empty():
328
ch_info = ch.child(name).first_child().value()
0 commit comments