Skip to content

Commit

Permalink
instantiate one if not parsed as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mayofaulkner committed Nov 5, 2020
1 parent 4ac01d8 commit 3d0a378
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions brainbox/io/one.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ def load_spike_sorting_with_channel(eid, one=None, probe=None, dataset_types=Non
:return: spikes, clusters, channels (dict of bunch, 1 bunch per probe)
"""
# --- Get spikes and clusters data
one = one or ONE()
dic_spk_bunch, dic_clus = load_spike_sorting(eid, one=one, probe=probe,
dataset_types=dataset_types, force=force)
# -- Get brain regions and assign to clusters
Expand Down

0 comments on commit 3d0a378

Please sign in to comment.