Commit 4cce40f
Fixes for cheetah v5.4.0 (#913)
* Move constants into class so accessible for testing.
* Test of building NcsBlocks.
* Handle old files with truncated frequency in header and test.
* Change interface on parse versus build.
* Tests for PRE4 type and code corrections.
Tests for v5.5.1 still failing.
* Fix initializer, update loop vars.
* Add additional tests on v5.5.1 with 2 blocks
* Tests of block construction for incomplete blocks
* Fix up single block case.
* Remove unneeded classes. Clean up style.
* Use private dtype by new private name.
* Add test of side effects of read_ncs_files
* Use NcsBlocksFactory and logical or.
* Fix off by one in range for list. Comments.
* Use standard time calculation for last time of block.
* Remove test with tolerance over whole length. Fix microsPerSampUsed assignement.
Using a tolerance over a longer experiment is not sensitive enough to detect blocks where perhaps a large amount of samples are dropped and there is a small gap afterwards.
* Tests of raw io for incomplete records multiple block case.
* Update stop times to include time for samples in partially filled records.
* PEP and style cleanup. Corrected gap comment.
* Line shortening for PEP8.
* More PEP8 items.
* Correct column error in data tested.
Strange this hasn’t caused issues before with other file sets.
* Update comment on PRE4 file limitations.
* Tests for PRE4 file type in Cheetah v4.0.2.
* PEP8 indent corrections.
* Small PEP8 correctin.
* Proper time opened header for BML and use of frequency.
* Download files and activate tests for BML style files.
* record start and end times in NcsBlocks for verification later
* Code to handle digitallynx with cheetah v1
Like files from Dr. Florian Mormann’s lab.
* Fixes to handle split block.
* Tests NcsBlockFactory with split blocks and unfilled records.
* Tests of data read in ncs files with partial records and split blocks.
* Handle testing less data than available in all segments.
* Read and test with partial blocks. Test all types in test_neuralyxio.
* Read and test with partial blocks. Test all types in test_neuralyxio.
* PEP8 fix ups.
* Language and function renaming.
# Conflicts:
# neo/rawio/neuralynxrawio.py
* Language and function renaming.
* Move constants into class so accessible for testing.
* Test of building NcsBlocks.
* Handle old files with truncated frequency in header and test.
* Change interface on parse versus build.
# Conflicts:
# neo/rawio/neuralynxrawio.py
* Tests for PRE4 type and code corrections.
Tests for v5.5.1 still failing.
# Conflicts:
# neo/rawio/neuralynxrawio.py
* Fix initializer, update loop vars.
* Add additional tests on v5.5.1 with 2 blocks
* Tests of block construction for incomplete blocks
* Fix up single block case.
* Remove unneeded classes. Clean up style.
# Conflicts:
# neo/rawio/neuralynxrawio.py
* Add test of side effects of read_ncs_files
* Use NcsBlocksFactory and logical or.
# Conflicts:
# neo/rawio/neuralynxrawio.py
* Fix off by one in range for list. Comments.
* Use standard time calculation for last time of block.
* Remove test with tolerance over whole length. Fix microsPerSampUsed assignement.
Using a tolerance over a longer experiment is not sensitive enough to detect blocks where perhaps a large amount of samples are dropped and there is a small gap afterwards.
* Tests of raw io for incomplete records multiple block case.
* Update stop times to include time for samples in partially filled records.
* PEP and style cleanup. Corrected gap comment.
* Line shortening for PEP8.
* More PEP8 items.
# Conflicts:
# neo/test/rawiotest/test_neuralynxrawio.py
* Remove conflict markers.
* More conflict resolution for rebase.
* verify block function and test
* Call renamed functions.
* use _verifyBlockStructure to ensure same structure
This is hopefully a bit faster than building NcsBlocks for each file.
* Properly limit samples compared.
* Temporarily remove data test.
This matches apdavison’s from commit 2ac9596. I can’t find and revert the commit where I undid that change.
* Remove duplication of some older tests.
* Comments on structure of segment defining fields.
* Factor out NcsBlock object.
This to facilitate temporal comparisions needed for segment definitions when channels may have different recording lengths.
* Change factory methods to use NcsBlock.
* Rewrite tests for NcsBlocks refactoring.
* More refactoring of NcsBlocks.
* Gather all NcsBlocks first, then build segements.
Builds NcsBlocks for all unique structures in all files. Then sets up segment structure based on these. A precursor to more sophisticated segments for record block structures.
* change name to _scan_ncs_files rather than read
* Proper formatting of number of NcsBlock structures.
* Move neuralynxrawio to subdirectory to factor our other classes.
* Eliminate WholeTimesPositionBlock as class.
* Factor helper classes out in package.
* Define data returned by scan_ncs_files and rename.
* Return results from scan_ncs_files and unpack them into private atttributes.
* Test returned results.
* Fix for version 5.4.0 headers without :
* Allow gap which is fraction of sample time, rather than fixed micros.
This important when sampling rates are lower.
* Test changes for Cheetah v5.4.0.
* Clean up some comments.
* Better error message if header/pattern mismatch.
* PEP8 clean ups.
* Changes to address comments by Julia Sprenger
# Conflicts:
# neo/rawio/neuralynxrawio/__init__.py
# neo/rawio/neuralynxrawio/ncssections.py
# neo/rawio/neuralynxrawio/nlxheader.py
# Conflicts:
# neo/rawio/neuralynxrawio/ncssections.py
* Remove merge conflicts.
# Conflicts:
# neo/rawio/neuralynxrawio/__init__.py
# neo/rawio/neuralynxrawio/ncssections.py
# neo/rawio/neuralynxrawio/nlxheader.py
* Fix up some PEP8 comments.
# Conflicts:
# neo/test/rawiotest/test_neuralynxrawio.py
* Roll back inadvertent commit of local gin repository.
* Fixup improperly resolved conflicts.
These were created by inadvertendly committed the required changes on another branch and needing to cherry-pick off that branch.
# Conflicts:
# neo/rawio/neuralynxrawio/__init__.py
# neo/rawio/neuralynxrawio/ncssections.py
# neo/rawio/neuralynxrawio/nlxheader.py
# neo/test/rawiotest/test_neuralynxrawio.py
* More PEP8 fixups.
* Replace inadvertently deleted package file.
* Repaired inadvertent modification of blocks variable in nixio
* Take 6.3.2 io tests out.
Attempt to see what is happening with CircleCI testing.
* Specify no entitites to test.
* Retain tracking of maximum block length.
# Conflicts:
# neo/rawio/neuralynxrawio/ncssections.py
* PEP8 clean ups.
* Download Cheetah 5.4.0 test data.
# Conflicts:
# neo/test/iotest/test_neuralynxio.py
# neo/test/rawiotest/test_neuralynxrawio.py
# Conflicts:
# neo/test/iotest/test_neuralynxio.py
# neo/test/rawiotest/test_neuralynxrawio.py
* use self for results
Co-authored-by: Peter N. Steinmetz <[email protected]>1 parent 8dfb079 commit 4cce40f
File tree
3 files changed
+28
-8
lines changed- neo
- rawio/neuralynxrawio
- test
- iotest
- rawiotest
3 files changed
+28
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
218 | 219 | | |
| 220 | + | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
222 | | - | |
223 | | - | |
224 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
225 | 233 | | |
226 | 234 | | |
227 | 235 | | |
228 | | - | |
229 | | - | |
230 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
231 | 244 | | |
232 | 245 | | |
233 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
320 | 323 | | |
321 | 324 | | |
322 | 325 | | |
323 | | - | |
| 326 | + | |
324 | 327 | | |
325 | 328 | | |
326 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | | - | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| 185 | + | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| |||
0 commit comments