Comments (5)
Hi @JPacheco5, thanks for this question! Can you share the entire exception message so we can assess what function is calling for this unpacking?
Alternatively/additionally can you share the ABF you are having trouble opening?
Can you confirm the ABF can successfully be opened by ClampFit or another "official" ABF reading program? It's possible this error message is the result from a damaged ABF file. Thanks!
I'll close this issue now since I can't reproduce it, but if you provide additional information we can open it back up again 👍
from pyabf.
Hello, I have just stumbled upon this same issue myself. I am new to using this but I have a file to batch-read a Data Directory with only ABFs in it and then put every figure into a data dump. It works flawlessly for about 50-60 files every time without issues. I can then remove the files that were graphed from the Data Directory at the point of error and keep going with the next ABF in sequence. All of these ABFs work as I have gone through this data previously. Thank you for any help you can give. Attached is the error array I receive from Spyder, and it is identical to the one I get if I run from the terminal.
from pyabf.
Hi @TheSuperbohl, thanks for extending @JPacheco5's initial issue!
For reference, this is the function that fails:
Lines 39 to 42 in 06247e0
Based on the line of code that failed, I think the error is that you are both hitting an ABF file which is incomplete, corrupted, or was deleted or moved after the python program started running. I'll leave this issue open to track adding a more descriptive error message in this spot so a failure produces a more helpful error message.
If anyone hits an ABF file which repeatedly generates this error, first confirm it's not corrupted (e.g., try to look at it in ClampFit), and if pyabf still has problems with it you can upload it here (drag/drop it into the comments window) and I can take a closer look 👍
from pyabf.
Hi Scott,
Thank you for reaching back out. Will any incomplete file be considered one that was supposed to be say 8 sweeps but I canceled it after 4 full sweeps? Or is it more likely it's incomplete if I have cut the abf file off in the middle of the defined sweep no matter the actual sweep number. Currently have been testing with a data folder of unsorted raw data that can include both of those situations.
from pyabf.
Will any incomplete file be considered one that was supposed to be say 8 sweeps but I canceled it after 4 full sweeps?
No, when you click the "stop" button in ClampEx it writes a little bit of data to the end of the file (things like tag comments), even if you stop after 4 sweeps but there were 8 in the protocol.
It writes to disk every few seconds, but if power is lost (for example) then that little header at the end never gets written, and that is an incomplete file that will throw this error
Hope it helps!
from pyabf.
Related Issues (20)
- explore support for variable-length sweeps HOT 3
- pyabf compatibility with pyInstaller HOT 4
- Support protocols with user list epoch durations HOT 10
- add type hints and improve documentation
- ABF() should accept a pathlib.Path
- Stop warning when invalid dates are detected
- refactor header reader into smaller files
- AttributeError in module pyabf.tools when trying to use Memtest HOT 2
- Fails to load files with more adc channels than dac channels HOT 3
- ABF.sampleRate
- FFT/Spectrogram analysis of ABF data HOT 10
- Memory usage builds up when iteratively open abf files HOT 6
- Tutorial code - Plot the Command Waveform HOT 1
- add return types to properties HOT 5
- investigate memory management in long-running applications HOT 2
- Folder loop with pyabf HOT 2
- parent/child grouping
- ValueError when printing the header HOT 3
- How to read the epoch that a user list is applied to?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyabf.