Skip to content

Commit

Permalink
check length of set of voices in hidden types
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardFreedman committed Aug 3, 2023
1 parent 6d078e9 commit 4845ded
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions intervals/main_objs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2944,6 +2944,7 @@ def presentationTypes(self, melodic_ngram_length=4, limit_to_entries=True,
points_combined["Number_Entries"] = points_combined["Offsets"].apply(len)
points_combined["Count_Offsets"] = points_combined["Offsets"].apply(set).apply(len)
points_combined = points_combined[points_combined["Count_Offsets"] > 1]
points_combined = points_combined[points_combined["Voices"].apply(len(set)) > 1]
if len(points_combined) == 0:
print("No Presentation Types Found in " + self.metadata['composer'] + ":" + self.metadata['title'])
else:
Expand Down

0 comments on commit 4845ded

Please sign in to comment.