Skip to content

Commit 1fb6ee3

Browse files
committed
naming
1 parent a0de32c commit 1fb6ee3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/spikeinterface/core/channelsaggregationrecording.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ def __init__(self, recording_list, renamed_channel_ids=None):
3232
else:
3333

3434
# Explicitly check if all channel_ids arrays are either all integers or all strings.
35-
all_int_dtype = all(np.issubdtype(rec.channel_ids.dtype, np.integer) for rec in recording_list)
36-
all_str_dtype = all(np.issubdtype(rec.channel_ids.dtype, np.str_) for rec in recording_list)
35+
all_ids_are_int_dtype = all(np.issubdtype(rec.channel_ids.dtype, np.integer) for rec in recording_list)
36+
all_ids_are_str_dtype = all(np.issubdtype(rec.channel_ids.dtype, np.str_) for rec in recording_list)
3737

38-
all_channels_have_same_type = all_int_dtype or all_str_dtype
39-
if all_channels_have_same_type:
38+
all_ids_have_same_dtype = all_ids_are_int_dtype or all_ids_are_str_dtype
39+
if all_ids_have_same_dtype:
4040
combined_ids = np.concatenate([rec.channel_ids for rec in recording_list])
4141
all_channel_ids_are_unique = np.unique(combined_ids).size == num_all_channels
4242

43-
if all_channels_have_same_type and all_channel_ids_are_unique:
43+
if all_ids_have_same_dtype and all_channel_ids_are_unique:
4444
channel_ids = combined_ids
4545
else:
4646
# If IDs are not unique or not of the same type, use default as stringify IDs

0 commit comments

Comments
 (0)