Created
October 20, 2011 14:56
-
-
Save dedan/1301351 to your computer and use it in GitHub Desktop.
neo bugs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [109]: from neo.io.neuroexplorerio import NeuroExplorerIO | |
--------------------------------------------------------------------------- | |
ImportError Traceback (most recent call last) | |
/Users/dedan/projects/fu/unmixpain/<ipython-input-109-f477c5eea2d3> in <module>() | |
----> 1 from neo.io.neuroexplorerio import NeuroExplorerIO | |
/Users/dedan/.virtualenvs/neo/lib/python2.7/site-packages/neo/io/neuroexplorerio.py in <module>() | |
19 from .baseio import BaseIO | |
20 from ..core import * | |
---> 21 from .tools import create_many_to_one_relationship | |
22 | |
23 import numpy as np | |
/Users/dedan/.virtualenvs/neo/lib/python2.7/site-packages/neo/io/tools.py in <module>() | |
8 | |
9 from ..core import * | |
---> 10 from ..description import one_to_many_reslationship, many_to_one_reslationship | |
11 | |
12 #def finalize_block(block): | |
/Users/dedan/.virtualenvs/neo/lib/python2.7/site-packages/neo/description.py in <module>() | |
36 """ | |
37 | |
---> 38 from .core import objectlist | |
39 | |
40 import quantities as pq | |
ImportError: cannot import name objectlist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [6]: from neo.io import NeuroExplorerIO | |
In [7]: ui = NeuroExplorerIO('../data/2010-12-13-u3_iSortd.nex') | |
In [8]: ui.read() | |
ERROR: An unexpected error occurred while tokenizing input | |
The following traceback may be corrupted or invalid | |
The error message is: ('EOF in multi-line statement', (17, 0)) | |
--------------------------------------------------------------------------- | |
ValueError Traceback (most recent call last) | |
/Users/dedan/projects/fu/unmixpain/<ipython-input-8-3aedc972bade> in <module>() | |
----> 1 ui.read() | |
/Users/dedan/.virtualenvs/neo/lib/python2.7/site-packages/neo/io/baseio.pyc in read(self, lazy, cascade, **kargs) | |
84 if not cascade: | |
85 return bl | |
---> 86 seg = self.read_segment(lazy = lazy, cascade = cascade, **kargs) | |
87 bl.segments.append(seg) | |
88 create_many_to_one_relationship(bl) | |
/Users/dedan/.virtualenvs/neo/lib/python2.7/site-packages/neo/io/neuroexplorerio.pyc in read_segment(self, lazy, cascade) | |
122 t_start = globalHeader['tbeg']/globalHeader['freq']*pq.s, | |
123 t_stop = globalHeader['tend']/globalHeader['freq']*pq.s, | |
--> 124 name = entityHeader['name'], | |
125 ) | |
126 sptr.annotate(channel_index = entityHeader['WireNumber']) | |
/Users/dedan/.virtualenvs/neo/lib/python2.7/site-packages/neo/core/spiketrain.pyc in __new__(cls, times, t_stop, units, dtype, copy, sampling_rate, t_start, waveforms, left_sweep, name, file_origin, description, **annotations) | |
151 if obj.size > 0: | |
152 _check_time_in_range(obj.min(), obj.t_start, obj.t_stop) | |
--> 153 _check_time_in_range(obj.max(), obj.t_start, obj.t_stop) | |
154 return obj | |
155 | |
/Users/dedan/.virtualenvs/neo/lib/python2.7/site-packages/neo/core/spiketrain.pyc in _check_time_in_range(value, t_start, t_stop) | |
35 raise ValueError("The first spike (%s) is before t_start (%s)" % (value, t_start)) | |
36 if value.max() > t_stop: | |
---> 37 raise ValueError("The last spike (%s) is after t_stop (%s)" % (value, t_stop)) | |
38 else: | |
39 if value < t_start: | |
ValueError: The last spike (1473.56225586 s) is after t_stop (1473.56225 s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment