Skip to content

Commit 76fa01e

Browse files
committed
Fix docs
1 parent ecaf993 commit 76fa01e

6 files changed

Lines changed: 14 additions & 8 deletions

File tree

doc/how_to/combine_recordings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Combine Recordings in SpikeInterface
1+
Combine recordings in SpikeInterface
22
====================================
33

44
In this tutorial we will walk through combining multiple recording objects. Sometimes this occurs due to hardware

doc/how_to/load_matlab_data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Export MATLAB Data to Binary & Load in SpikeInterface
1+
Export MATLAB data to binary & load in SpikeInterface
22
========================================================
33

44
In this tutorial, we will walk through the process of exporting data from MATLAB in a binary format and subsequently loading it using SpikeInterface in Python.

doc/how_to/load_your_data_into_sorting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Load Your Own Data into a Sorting
2-
=================================
1+
Load your own data into a Sorting object
2+
========================================
33

44
Why make a :code:`Sorting`?
55

doc/how_to/process_by_channel_group.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Process a Recording by Channel Group
1+
Process a recording by channel group
22
====================================
33

44
In this tutorial, we will walk through how to preprocess and sort a recording

doc/how_to/viewers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Visualize Data
1+
Visualize data
22
==============
33

44
There are several ways to plot signals (raw, preprocessed) and spikes.

src/spikeinterface/core/sortinganalyzer.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,9 +2245,15 @@ def _save_data(self):
22452245
elif HAS_PANDAS and isinstance(ext_data, pd.DataFrame):
22462246
df_group = extension_group.create_group(ext_data_name)
22472247
# first we save the index
2248-
df_group.create_dataset(name="index", data=ext_data.index.to_numpy())
2248+
indices = ext_data.index.to_numpy()
2249+
if indices.dtype.kind == "O":
2250+
indices = indices.astype(str)
2251+
df_group.create_dataset(name="index", data=indices)
22492252
for col in ext_data.columns:
2250-
df_group.create_dataset(name=col, data=ext_data[col].to_numpy())
2253+
col_data = ext_data[col].to_numpy()
2254+
if col_data.dtype.kind == "O":
2255+
col_data = col_data.astype(str)
2256+
df_group.create_dataset(name=col, data=col_data)
22512257
df_group.attrs["dataframe"] = True
22522258
else:
22532259
# any object

0 commit comments

Comments
 (0)