Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pylsl/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ def get_channel_units(self) -> typing.Optional[list[typing.Optional[str]]]:

def _get_channel_info(self, name) -> typing.Optional[list[typing.Optional[str]]]:
"""Get the 'channel/name' element in the XML tree."""
if self.desc().child("channels").empty():
channels = self.desc().child("channels")
if channels.empty():
return None
ch_infos = list()
channels = self.desc().child("channels")
ch = channels.child("channel")
while not ch.empty():
ch_info = ch.child(name).first_child().value()
Expand Down
Loading