Comments (6)
crodger wrote on 2011-10-04 22:51:55:
Text of error:
{{{
FAIL: test_write_then_read (neo.test.io.test_pynnio.CommonTestPyNNTextIO)
Traceback (most recent call last):
File "/home/chris/neo2_dev/neo0.2/neo/test/io/common_io_test.py", line 200, in test_write_then_read
assert_same_sub_schema(ob, ob2)
File "/home/chris/neo2_dev/neo0.2/neo/test/tools.py", line 128, in assert_same_sub_schema
assert len(sub1) == len(sub2), 'theses two %s have not the same %s number'%(classname, child)
AssertionError: theses two Segment have not the same SpikeTrain number
}}}
from python-neo.
crodger wrote on 2011-10-05 00:49:12:
Sorry, change (3) above doesn't make any sense and I need to clarify it. We don't need to add Block.annotations['segment_times'] because this information is already in Block.segments. The problem is that, once it is written to disk, the segment tstarts are lost. What I am suggesting is a new CSV file with segment info that allows the segments to be reconstructed after reading from disk.
from python-neo.
sgarcia wrote on 2011-10-05 10:58:13:
I think we should had a flag in BaseTestIO,
write_them_read_maintain_schema = True or False
and the test is skipped or not.
So for IO for which read/write is bijectif the test would be avoid.
Note: I do not like so much an IO that automagically concatenate 3 Segment in 1 Segment because they are continuous. We have the same cases in AxonIO, several continuous Segment and in that case I create 3 Segment I do not concatenate them. I think It is more transparent for the user. If you do a concatenate, I tink you should add a flag MyIO.read_block(concatenate_segment_if_continuous = True).
from python-neo.
crodger wrote on 2011-10-06 01:36:28:
So, do you write each segment to a separate file? I don't think the Blackrock format includes the datetime in the file itself, but in a separate metadata file, which I don't know how to parse.
from python-neo.
sgarcia wrote on 2011-10-06 10:30:58:
I am not sure to understand you. You read a file that is in fact 3 segments, at reading times you concatenate then in one because they are continuous so you return 1 segment. So at writing time, you write 1 segment, because you have only that. Am I wrong ?
In my case I do not write. I just render whil reading 3 segments when there 3 segments in the files. Even if they are continuous and they could be concatenated. In Axon software you can concatenate several files in one. It is typically 1 block - 3 segment cases.
from python-neo.
sgarcia wrote on 2011-10-28 15:14:40:
I made a patch to skip this test in Blackrock.
So this ticket is closed but I have a new ticket ticket for neo 0.3 because the way BlackrockIO is implemented (multi segment of one same segment for getting chunk of data) cause the problem.
from python-neo.
Related Issues (20)
- Spikeglx: parse tcat input HOT 1
- Object description metadata lost/wrong when saving NWB files HOT 1
- read_spikegadgets broken for neuropixel recordings HOT 15
- read_neuralynx_sorting difficulties HOT 19
- Plexon signal stream_ids are not cosistent across reads HOT 2
- Why is the event channels header dtype is in bytes? HOT 3
- Consumes a huge amount of memory during processing HOT 5
- uint32 too small for opening raw ns5 HOT 7
- Deprecation in pq.Quantity of the copy argument HOT 3
- [IgorIO] Not all .pxp files have "xUnits" in the header
- Add a test for `slice(None)` to `RawIO` testing HOT 1
- Fix tests for quantities 0.16.0 HOT 12
- neo.rawio : API enhance proposal buffer_id and stream_id HOT 7
- error when importing spikegadget .rec file with multiple NPX 1.0 probes HOT 2
- python-neo fails to load unsorted spike channels from PL2 files HOT 1
- BaseTestRawIO's setUp function deletes data needed for subsequent tests HOT 10
- IntanIO problem with one file per stream format HOT 4
- EDF blocks access when io is opened. HOT 4
- IntanIO function HOT 2
- Plexon2RawIO's implementation of _get_analogsignal_chunks can be improved HOT 4
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 python-neo.