Skip to content

Commit b124a0f

Browse files
authored
Merge pull request #3643 from yger/np.Inf
np 2.0 compatibility
2 parents b1a7706 + dd5c74e commit b124a0f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/spikeinterface/sorters/external/kilosort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def _get_specific_options(cls, ops, params) -> dict:
206206

207207
# options for posthoc merges (under construction)
208208
ops["fracse"] = 0.1 # binning step along discriminant axis for posthoc merges (in units of sd)
209-
ops["epu"] = np.Inf
209+
ops["epu"] = np.inf
210210

211211
ops["ForceMaxRAMforDat"] = 20e9 # maximum RAM the algorithm will try to use; on Windows it will autodetect.
212212

src/spikeinterface/sorters/external/kilosortbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _generate_ops_file(cls, recording, params, sorter_output_folder, binary_file
9696
ops["fbinary"] = str(binary_file_path.absolute()) # will be created for 'openEphys'
9797
ops["fproc"] = str((sorter_output_folder / "temp_wh.dat").absolute()) # residual from RAM of preprocessed data
9898
ops["root"] = str(sorter_output_folder.absolute()) # 'openEphys' only: where raw files are
99-
ops["trange"] = [0, np.Inf] # time range to sort
99+
ops["trange"] = [0, np.inf] # time range to sort
100100
ops["chanMap"] = str((sorter_output_folder / "chanMap.mat").absolute())
101101

102102
ops["fs"] = recording.get_sampling_frequency() # sample rate

0 commit comments

Comments
 (0)