-
Notifications
You must be signed in to change notification settings - Fork 266
Closed
Milestone
Description
Background:
Following the previous issue #1038 regarding different sampling rates, we have decided to temporarily remove the differently sampled data (WE*.ncs) in order to bridge this solution pending #1041 .
After curtailing the original archive:
chymera@neurohost /mnt/data/manish/_vStr_phase_stim/M235/M235-2021-07-16 $ tree /mnt/data/manish/vStr_phase_stim/M235/M235-2021-07-16/
/mnt/data/manish/vStr_phase_stim/M235/M235-2021-07-16/
├── CheetahLogFile.txt
├── ConfigurationLog
│ ├── CheetahLastConfiguration.cfg
│ └── MM_ContLFP_V958_withWheel.log
├── CSC10.ncs
├── CSC11.ncs
├── CSC12.ncs
├── CSC13.ncs
├── CSC14.ncs
├── CSC15.ncs
├── CSC16.ncs
├── CSC17.ncs
├── CSC18.ncs
├── CSC19.ncs
├── CSC1.ncs
├── CSC20.ncs
├── CSC21.ncs
├── CSC22.ncs
├── CSC23.ncs
├── CSC24.ncs
├── CSC25.ncs
├── CSC26.ncs
├── CSC27.ncs
├── CSC28.ncs
├── CSC29.ncs
├── CSC2.ncs
├── CSC30.ncs
├── CSC31.ncs
├── CSC32.ncs
├── CSC3.ncs
├── CSC4.ncs
├── CSC5.ncs
├── CSC6.ncs
├── CSC7.ncs
├── CSC8.ncs
├── CSC9.ncs
├── DataProcessingErrors.nde
├── Events.nev
├── LFP28.ncs
├── LFP30.ncs
├── LFP4.ncs
├── LFP6.ncs
├── TT1.ntt
├── TT2.ntt
├── TT3.ntt
├── TT4.ntt
├── TT5.ntt
├── TT6.ntt
├── TT7.ntt
├── TT8.ntt
├── WE1.ncs
└── WE2.ncs
to:
chymera@neurohost /mnt/data/manish/_vStr_phase_stim/M235/M235-2021-07-16 $ tree
.
├── CheetahLogFile.txt
├── ConfigurationLog
│ ├── CheetahLastConfiguration.cfg
│ └── MM_ContLFP_V958_withWheel.log
├── CSC10.ncs
├── CSC11.ncs
├── CSC12.ncs
├── CSC13.ncs
├── CSC14.ncs
├── CSC15.ncs
├── CSC16.ncs
├── CSC17.ncs
├── CSC18.ncs
├── CSC19.ncs
├── CSC1.ncs
├── CSC20.ncs
├── CSC21.ncs
├── CSC22.ncs
├── CSC23.ncs
├── CSC24.ncs
├── CSC25.ncs
├── CSC26.ncs
├── CSC27.ncs
├── CSC28.ncs
├── CSC29.ncs
├── CSC2.ncs
├── CSC30.ncs
├── CSC31.ncs
├── CSC32.ncs
├── CSC3.ncs
├── CSC4.ncs
├── CSC5.ncs
├── CSC6.ncs
├── CSC7.ncs
├── CSC8.ncs
├── CSC9.ncs
├── DataProcessingErrors.nde
├── Events.nev
├── LFP28.ncs
├── LFP30.ncs
├── LFP4.ncs
├── LFP6.ncs
├── TT1.ntt
├── TT2.ntt
├── TT3.ntt
├── TT4.ntt
├── TT5.ntt
├── TT6.ntt
├── TT7.ntt
└── TT8.ntt
We get the following error:
chymera@neurohost ~/src/neuralynx_nwb/neuralynx_nwb $ python -c 'import convert; convert.reposit_data()'
/home/chymera/src/neuralynx_nwb/neuralynx_nwb/convert.py:201: SyntaxWarning: "is" with a literal. Did you mean "=="?
if s is 0:
/home/chymera/src/neuralynx_nwb/neuralynx_nwb/convert.py:252: SyntaxWarning: "is" with a literal. Did you mean "=="?
if s is 0:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/chymera/src/neuralynx_nwb/neuralynx_nwb/convert.py", line 44, in reposit_data
reader = neo.io.NeuralynxIO(dirname=session_data, keep_original_times=False) # TODO: newer version should support: , keep_original_times=True)
File "/home/chymera/src/python-neo/neo/io/neuralynxio.py", line 51, in __init__
BaseFromRaw.__init__(self, dirname)
File "/home/chymera/src/python-neo/neo/io/basefromrawio.py", line 74, in __init__
self.parse_header()
File "/home/chymera/src/python-neo/neo/rawio/baserawio.py", line 185, in parse_header
self._parse_header()
File "/home/chymera/src/python-neo/neo/rawio/neuralynxrawio/neuralynxrawio.py", line 285, in _parse_header
self._sigs_memmaps, ncsSegTimestampLimits = self.scan_ncs_files(self.ncs_filenames)
File "/home/chymera/src/python-neo/neo/rawio/neuralynxrawio/neuralynxrawio.py", line 587, in scan_ncs_files
raise IOError('ncs files have {} different sections structures. Unsupported.'.format(
OSError: ncs files have 2 different sections structures. Unsupported.
Produced by:
...
reader = neo.io.NeuralynxIO(dirname='/mnt/data/manish/_vStr_phase_stim/M235/M235-2021-07-16', keep_original_times=False)
...Metadata
Metadata
Assignees
Labels
No labels