Skip to content

Commit 707adff

Browse files
committed
add explanation for index parameter
1 parent bc54009 commit 707adff

File tree

1 file changed

+3
-0
lines changed
  • element_array_ephys/export/nwb

1 file changed

+3
-0
lines changed

element_array_ephys/export/nwb/nwb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ def create_units_table(
199199
# add additional columns to the units table
200200
units_query = ephys.CuratedClustering.Unit() & session_key
201201
for additional_attribute in ["cluster_quality_label", "spike_depths"]:
202+
# The `index` parameter indicates whether the column is a "ragged array," i.e.
203+
# whether each row of this column is a vector with potentially different lengths
204+
# for each row.
202205
units_table.add_column(
203206
name=units_query.heading.attributes[additional_attribute].name,
204207
description=units_query.heading.attributes[additional_attribute].comment,

0 commit comments

Comments
 (0)