Skip to content

Commit e5ffc24

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1fa4be3 commit e5ffc24

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/spikeinterface/core/channelsaggregationrecording.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,13 @@ def __init__(self, recording_list_or_dict=None, renamed_channel_ids=None, record
105105
"Locations are not unique! " "Cannot aggregate recordings!"
106106
)
107107

108-
planar_contour_keys = [key for recording in recording_list for key in recording.get_annotation_keys() if 'planar_contour' in key]
109-
if len(planar_contour_keys)>0:
110-
if all(k == planar_contour_keys[0] for k in planar_contour_keys): # we add the 'planar_contour' annotations only if there is a unique one in the recording_list
108+
planar_contour_keys = [
109+
key for recording in recording_list for key in recording.get_annotation_keys() if "planar_contour" in key
110+
]
111+
if len(planar_contour_keys) > 0:
112+
if all(
113+
k == planar_contour_keys[0] for k in planar_contour_keys
114+
): # we add the 'planar_contour' annotations only if there is a unique one in the recording_list
111115
planar_contour_key = planar_contour_keys[0]
112116
collect_planar_contours = []
113117
for rec in recording_list:

0 commit comments

Comments
 (0)