Skip to content

Commit 0107d24

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

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/spikeinterface/exporters/to_pynapple.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ def to_pynapple_tsgroup(
8484

8585
# get the underlying sorting
8686
if isinstance(sorting_analyzer_or_sorting, SortingAnalyzer):
87-
sorting = sorting_analyzer_or_sorting.sorting # use the sorting of SortingAnalyzer
87+
sorting = sorting_analyzer_or_sorting.sorting # use the sorting of SortingAnalyzer
8888
elif isinstance(sorting_analyzer_or_sorting, BaseSorting):
89-
sorting = sorting_analyzer_or_sorting # already a Sorting instance
90-
89+
sorting = sorting_analyzer_or_sorting # already a Sorting instance
90+
9191
# attach unit properties from sorting
9292
if attach_unit_properties:
9393
property_df = pd.DataFrame(index=unit_ids)
9494
property_keys = sorting.get_property_keys()
95-
for property_key in property_keys: # loop through sorting's properties
95+
for property_key in property_keys: # loop through sorting's properties
9696
property_data = sorting.get_property(property_key)
9797
property_df[property_key] = property_data
9898
metadata_list.append(property_df)

0 commit comments

Comments
 (0)