Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bnd/pipeline/pyaldata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from pynwb.behavior import SpatialSeries
from pynwb.misc import Units

from ..logger import set_logging
from ..config import _load_config
from ..logger import set_logging
from ..pipeline.nwb import run_nwb_conversion

logger = set_logging(__name__)
Expand Down Expand Up @@ -212,7 +212,7 @@ def _parse_pynwb_probe(
brain_area_spikes_and_chan_best[brain_area.replace("-", "_")][
"unit_guide"
] = unit_guide
brain_area_spikes_and_chan_best[brain_area.replace("-", "_")]["KSLabel"] = (
brain_area_spikes_and_chan_best[brain_area.replace("-", "_")]["kslabel"] = (
probe_units.KSLabel[brain_area_neurons][sorted_chan_best_indices]
)

Expand Down Expand Up @@ -662,8 +662,8 @@ def add_spiking_data_to_df(self):
] * len(self.pyaldata_df)

# Add kilosort labels
self.pyaldata_df[f"{brain_area_key}_KSLabel"] = [
brain_area_spike_data["KSLabel"]
self.pyaldata_df[f"{brain_area_key}_kslabel"] = [
brain_area_spike_data["kslabel"]
] * len(self.pyaldata_df)

self.pyaldata_df[f"{brain_area_key}_spikes"] = np.nan
Expand Down
Loading