Describe the bug
NevFile.getdata() uses numpy.char.chararray.tostring(), which has been deprecated since 1.19 and is removed from modern versions of numpy:
File [/brpylib/brpylib.py:740](http://localhost:8888/lab/workspaces/auto-t/tree/brpylib/brpylib.py#line=739), in NevFile.getdata(self, elec_ids, wave_read)
738 textComments = comments[trueCommentsidx]
739 textComments[:, -1] = "$"
--> 740 stringarray = textComments.tostring()
741 stringvector = stringarray.decode("latin-1")
742 stringvector = stringvector[0:-1]
AttributeError: 'chararray' object has no attribute 'tostring'
To Reproduce
- Install a recent version of numpy, e.g. 2.4 (current stable)
- open a NEV file with comments
Expected behavior
NevFile.getdata() should open a NEV file with comments without error
Desktop (please complete the following information):