Skip to content

Commit 862d01a

Browse files
committed
manual merge?
1 parent a066feb commit 862d01a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dartsort/util/universal_util.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,12 @@ def singlechan_to_library(
200200
templates = templates.reshape(nf * nsct, nt, nc)
201201
templates /= np.linalg.norm(templates, axis=(1, 2), keepdims=True)
202202

203-
return TemplateData(
203+
template_data = TemplateData(
204204
templates,
205205
unit_ids=np.arange(nsct * nt),
206206
spike_counts=np.ones(nsct * nt, dtype=int),
207207
)
208+
return footprints, template_data
208209

209210

210211
def universal_templates_from_data(
@@ -245,12 +246,12 @@ def universal_templates_from_data(
245246
kmeanspp_initial=kmeanspp_initial,
246247
random_seed=random_seed,
247248
)
248-
template_data = singlechan_to_library(
249+
footprints, template_data = singlechan_to_library(
249250
singlechan_centroids,
250251
rec.get_channel_locations() if rec is not None else None,
251252
n_sigmas=n_sigmas,
252253
min_template_size=min_template_size,
253254
max_distance=max_distance,
254255
dx=dx,
255256
)
256-
return template_data
257+
return singlechan_centroids, footprints, template_data

0 commit comments

Comments
 (0)