diff --git a/brpylib/brpylib.py b/brpylib/brpylib.py index d4537d2..b0942bc 100644 --- a/brpylib/brpylib.py +++ b/brpylib/brpylib.py @@ -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(