Skip to content

Commit

Permalink
Revert "Remove f-string for compatibility with Python < 3.6"
Browse files Browse the repository at this point in the history
This reverts commit f6ca348.
  • Loading branch information
jpgill86 committed Sep 9, 2021
1 parent 2f12466 commit c942077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ephyviewer/datasource/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, epoch=None, possible_labels=[], color_labels=None, channel_na
# add labels missing from possible_labels but found in epoch data
new_labels_from_data = list(set(epoch['label'])-set(self.possible_labels))
if restrict_to_possible_labels:
assert len(new_labels_from_data)==0, 'epoch data contains labels not found in possible_labels: ' + str(new_labels_from_data)
assert len(new_labels_from_data)==0, f'epoch data contains labels not found in possible_labels: {new_labels_from_data}'
self.possible_labels += new_labels_from_data

# put the epochs into a canonical order after loading
Expand Down

0 comments on commit c942077

Please sign in to comment.