Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion spikeinterface_gui/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,9 @@ def get_traces(self, trace_source='preprocessed', **kargs):

def get_contact_location(self):
location = self.analyzer.get_channel_locations()
return location
# for now, we only use information from the first two dimensions of channel location
location_2d = location[:,0:2]
return location_2d

def get_channel_groups(self):
if self.has_extension("recording"):
Expand Down
3 changes: 2 additions & 1 deletion spikeinterface_gui/probeview.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class ProbeView(ViewBase):
_need_compute = True

def __init__(self, controller=None, parent=None, backend="qt"):
self.contact_positions = controller.get_contact_location()
# for now, we only use information from the first two dimensions of contact location
self.contact_positions = controller.get_contact_location()[:,:2]
self.probes = controller.get_probegroup().probes
self._unit_positions = controller.unit_positions
ViewBase.__init__(self, controller=controller, parent=parent, backend=backend)
Expand Down
Loading