Skip to content

Commit

Permalink
fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Oct 22, 2024
1 parent 1d724ff commit e87bd3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/experiment/rules/rhythm_discrimination.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ def validate_playlist(self, playlist: Playlist):
errors.append("Groups should have values 0, 1")
except:
errors.append("The sections should have integer groups")
pattern_error = lambda x: f"There should be 12 sections with pattern {m}"

def pattern_error(pattern: str) -> str:
return f"There should be 12 sections with pattern {pattern}"

metric_standard = STIMULI["metric"]["standard"]
for m in metric_standard:
if sections.filter(song__name__startswith=m).count() != 12:
Expand Down

0 comments on commit e87bd3a

Please sign in to comment.