Skip to content

Commit

Permalink
Merge pull request #2284 from alejoe91/fix_make_bins
Browse files Browse the repository at this point in the history
Use `sampling_frequency` instead of `get_sampling_frequency` in `_make_bins`
  • Loading branch information
samuelgarcia authored Dec 1, 2023
2 parents 5286ee2 + 296985f commit 6a38d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/postprocessing/correlograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_extension_function():


def _make_bins(sorting, window_ms, bin_ms):
fs = sorting.get_sampling_frequency()
fs = sorting.sampling_frequency

window_size = int(round(fs * window_ms / 2 * 1e-3))
bin_size = int(round(fs * bin_ms * 1e-3))
Expand Down

0 comments on commit 6a38d06

Please sign in to comment.