Commit 8dfb079
Nlx single file mode (#957)
* 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.
* change wording about ambiguity
* Add docstring about required signature with sets of channels.
* Add comment about restrictions on selected set of channels.
* Single file mode and tests.
* Clarify use of dirname or filename, but not both.
* Test no nev filenames.
Co-authored-by: Peter N. Steinmetz <[email protected]>1 parent bc60370 commit 8dfb079
File tree
4 files changed
+82
-10
lines changed- neo
- rawio/neuralynxrawio
- test
- iotest
- rawiotest
4 files changed
+82
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
67 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
68 | 85 | | |
69 | 86 | | |
70 | 87 | | |
| |||
91 | 108 | | |
92 | 109 | | |
93 | 110 | | |
94 | | - | |
95 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
96 | 120 | | |
97 | 121 | | |
98 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
92 | 100 | | |
93 | 101 | | |
94 | 102 | | |
| |||
199 | 207 | | |
200 | 208 | | |
201 | 209 | | |
| 210 | + | |
| 211 | + | |
202 | 212 | | |
203 | 213 | | |
204 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
| 351 | + | |
351 | 352 | | |
352 | | - | |
| 353 | + | |
| 354 | + | |
353 | 355 | | |
354 | 356 | | |
355 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
137 | 173 | | |
138 | 174 | | |
139 | 175 | | |
| |||
0 commit comments