-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with reading .pl2 files #1349
Comments
Can you give more details about your platform, what is your architecture? can you run?
|
Hi, the output of |
Can you try this branch? |
@h-mayorquin Are you referring to this branch(#1350)? I've attempted to use this branch just now, but unfortunately encountered the same error. I've previously encountered the issue you raised in this PR. However, I vaguely recall manually copying the 64-bit .dll file to the .plexon_dlls_for_neo folder, so it's unlikely the error is caused by conflicts between 64-bit and 32-bit .dll files. Additionally, in this commit(NeuralEnsemble/pypl2@2b25881), @JuliaSprenger committed changes stating "also accept bytes as channel names," which seems related to the error I'm experiencing. I'm not an expert in programming, could you please take a look? |
Hi all, I am getting the same error and at the same point as Bosswang12138 when trying to use neo to read pl2 files. output: I have tried to implement the commit (NeuralEnsemble/pypl2@2b25881), but am still getting the same error. For reference, I am also running 64bit Windows PE, Python 3.10, neo 13.0, and numpy 1.26.4, and also utilizing neo via SpikeInterface, just as Bosswang12138 is. Thank you! |
I will give it a try next week when I get into a windows machine. |
Hi all, I did some digging into the data that I was trying to access, and I found that all of the .pl2 files that NEO errors when trying to read had a column of a unit that was sorted during recording, labeled as "Unit a". I'm not entirely sure how this causes the error. @Bosswang12138, not sure if this is still relevant to you, but using Plexon's batch processing to remove all sorted units from all channels allows my files to be read by NEO. |
Hey all, I am currently attempting to use Spikeinterface and thus Neo to read some very recent pl2 files, and I am getting the exact same TypeError. These files do not have any units sorted during recording, or even any thresholded spikes that would appear on an SPK channel, so I'm not exactly sure how to approach this. |
Sorry guys, I just have not had the time. Plexon does not make it easier by having a close format however. Please complain about it to Plexon or whowever makes the decision to buy the system if you ever get the chance. |
cc @yerbamati |
@samuelgarcia , could you please take a look at this? I have a file that reproduces the error I can send you |
Coincidentally I looked at this myself this past week and just submitted PR #1495 that I believe fixes it. Open to thoughts. |
Hi, @cheydrick, I will test this against the three OSs on neuroconv: I thought that the problem is that the ddls expect a different input in linux and windows but in your PR the test pass so gingers crossed. [EDIT] I see that the test have not run in your PR. |
Patch for issue #1349 Issue with reading .pl2 files
Could people test this out so we can confirm this can be closed? We've merged the two PRs associated with this so getting confirmation this works for people's problems would be great! |
@zm711 it seems this has been addressed. I think it would be reasonable to close this issue and reopen if the problem reappears. |
That sounds good to me. :) |
Describe the bug
I encountered an issue while attempting to read a .pl2 file using the Plexon2RawIO from the neo library. Here's the snippet I used:
import neo.rawio
from pathlib import Path
folderPath = Path(r"D:\PROGRAM")
filename = Path("16ch1.pl2")
fullfilename = folderPath.joinpath(filename)
r = neo.rawio.Plexon2RawIO(filename=fullfilename)
r.parse_header()
The demo pl2 file were downloaded from Plexon, https://plexon.com/wp-content/uploads/2017/08/4chDemoPL2.pl2
I received the following error traceback:
Environment:
Could you please provide guidance or assistance regarding this error? Thank you for your support.
The text was updated successfully, but these errors were encountered: