Skip to content

Commit ff9cf82

Browse files
committed
fix proxy issue
1 parent 23e63ac commit ff9cf82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

neo/core/spiketrain.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
import quantities as pq
2525
from neo.core.baseneo import BaseNeo, MergeError, merge_annotations
2626
from neo.core.dataobject import DataObject, ArrayDict
27-
from neo.io.proxyobjects import SpikeTrainProxy
27+
# need this to avoid circular import issue
28+
import neo.io
2829

2930

3031
def check_has_dimensions_time(*values) -> None:
@@ -817,7 +818,7 @@ def merge(self, *others):
817818
compatible, an Exception is raised.
818819
"""
819820
for other in others:
820-
if isinstance(other, SpikeTrainProxy):
821+
if isinstance(other, neo.io.SpikeTrainProxy):
821822
raise MergeError(
822823
"Cannot merge, SpikeTrainProxy objects cannot be merged"
823824
"into regular SpikeTrain objects, please load them first."

0 commit comments

Comments
 (0)