Skip to content
Open
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
13 changes: 7 additions & 6 deletions brpylib/brpylib.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,12 +736,13 @@ def getdata(self, elec_ids="all", wave_read="read"):
)
trueCommentsidx = np.asarray(commentPackets)[trueComments]
textComments = comments[trueCommentsidx]
textComments[:, -1] = "$"
stringarray = textComments.tostring()
stringvector = stringarray.decode("latin-1")
stringvector = stringvector[0:-1]
validstrings = stringvector.replace("\x00", "")
commentsFinal = validstrings.split("$")
commentsFinal = []
for text in textComments:
stringarray = text.tostring()
stringvector = stringarray.decode("latin-1")
stringvector = stringvector[0:-1]
validstring = stringvector.replace("\x00", "")
commentsFinal.append(validstring)

# Remove the ROI comments from the list
subsetInds = list(
Expand Down