Skip to content

Commit 9b51b74

Browse files
authored
templates_ind, whitening_mat, whitening_mat_inv in "_kilosort_additional_files"
1 parent 7dc76e8 commit 9b51b74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

element_array_ephys/readers/kilosort.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import numpy as np
66
import re
77
import logging
8-
from .utils import convert_to_number
8+
from element_array_ephys.readers.utils import convert_to_number
99

1010
log = logging.getLogger(__name__)
1111

@@ -22,9 +22,6 @@ class Kilosort:
2222
"spike_templates.npy",
2323
"spike_times.npy",
2424
"templates.npy",
25-
"templates_ind.npy",
26-
"whitening_mat.npy",
27-
"whitening_mat_inv.npy",
2825
"spike_clusters.npy",
2926
]
3027

@@ -35,6 +32,9 @@ class Kilosort:
3532
"cluster_KSLabel.tsv",
3633
"template_features.npy",
3734
"template_feature_ind.npy",
35+
"templates_ind.npy",
36+
"whitening_mat.npy",
37+
"whitening_mat_inv.npy",
3838
]
3939

4040
kilosort_files = _kilosort_core_files + _kilosort_additional_files
@@ -47,7 +47,7 @@ def __init__(self, kilosort_dir):
4747

4848
self.validate()
4949

50-
params_filepath = kilosort_dir / "params.py"
50+
params_filepath = self._kilosort_dir / "params.py"
5151
self._info = {
5252
"time_created": datetime.fromtimestamp(params_filepath.stat().st_ctime),
5353
"time_modified": datetime.fromtimestamp(params_filepath.stat().st_mtime),

0 commit comments

Comments
 (0)