-
Notifications
You must be signed in to change notification settings - Fork 261
Open
Description
Describe the bug
There is an error: "UserWarning: Detected 177 undocumented segments within nev data after timestamps" and "NeoReadWriteError: Inconsistent ns6 and nev file. 178 segments present in .nev file, but 1 in ns6 file," which occurs when I use BlackrockIO to read my .nev and .ns6 files at the same time. This error occurs consistently on our .nev files. But BlackrockIO works fine when I only read the .ns6 file(use load_nev=False
). Additionally, it works correctly when using NPMK (https://github.com/BlackrockNeurotech/NPMK) in MATLAB to read the .nev file.
To Reproduce
code:
filepath = 'D:/Desktop/dummy file/test'
reader = BlackrockIO(filename=filepath, load_nev=True)
error:
UserWarning: Detected 177 undocumented segments within nev data after timestamps [ 2 19 43 54 86 97 108 128 139 149 161 182 196 209
226 234 306 315 329 378 401 414 438 453 473 509 559 583
613 641 653 674 684 742 757 779 802 815 830 842 855 867
900 910 922 946 982 995 1062 1098 1111 1123 1169 1237 1267 1315
1327 1338 1369 1379 1416 1425 1469 1529 1548 1560 1582 1595 1683 1715
1738 1772 1784 1801 1815 1825 1834 1857 1895 1905 1937 1982 1992 2007
2048 2126 2165 2175 2186 2206 2241 2253 2264 2284 2296 2336 2344 2354
2392 2438 2452 2486 2495 2506 2529 2545 2557 2568 2592 2647 2671 2689
2701 2759 2780 2814 2819 2839 2849 2860 2881 2888 2900 2951 2956 2967
2978 3000 3022 3045 3156 3163 3177 3200 3209 3252 3273 3300 3308 3341
3364 3376 3396 3420 3432 3450 3484 3496 3508 3540 3551 3588 3682 3694
3704 3716 3721 3733 3759 3781 3793 3810 3827 3837 3863 3871 3905 3928
3942 3957 3975 3987 3997 4046 4067 4120 4245].
NeoReadWriteError: Inconsistent ns6 and nev file. 178 segments present in .nev file, but 1 in ns6 file.
I creat a dummy file which have the same error:
dummy file.zip
Can you help me to slove this error? Thank you for your effort.
Environment:
- OS: Windows 11
- Python 3.12.3
- Neo 0.14.2
- NumPy 1.26.4