From 3b3ec4582c55ed7c47802b436ff0c7f5d87b4d1c Mon Sep 17 00:00:00 2001 From: Michael Scott Cuthbert Date: Sat, 10 Mar 2018 14:42:29 -0500 Subject: [PATCH] fix import order --- music21/alpha/analysis/aligner.py | 3 +-- music21/alpha/analysis/fixer.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/music21/alpha/analysis/aligner.py b/music21/alpha/analysis/aligner.py index a0eba00e3b..2010434145 100644 --- a/music21/alpha/analysis/aligner.py +++ b/music21/alpha/analysis/aligner.py @@ -9,6 +9,7 @@ # License: LGPL or BSD, see license.txt #------------------------------------------------------------------------------- from collections import Counter +import enum import operator import unittest @@ -17,8 +18,6 @@ from music21 import metadata from music21.alpha.analysis import hasher -import enum - class AlignerException(exceptions21.Music21Exception): pass diff --git a/music21/alpha/analysis/fixer.py b/music21/alpha/analysis/fixer.py index e23ccde60a..30ab8de14a 100644 --- a/music21/alpha/analysis/fixer.py +++ b/music21/alpha/analysis/fixer.py @@ -44,7 +44,7 @@ def fix(self): continue # if the are the same, don't bother to try changing it # 3 is the number of noChange Ops - if isinstance(op, aligner.ChangeOps) and op.changeOpNum == 3: + if isinstance(op, aligner.ChangeOps) and op == aligner.ChangeOps.NoChange: continue m = omrRef.getContextByClass(stream.Measure) @@ -226,7 +226,7 @@ def fix(self): continue # if the are the same, don't bother to try changing it # 3 is the number of noChange Ops - if isinstance(op, aligner.ChangeOps) and op.changeOpNum == 3: + if isinstance(op, aligner.ChangeOps) and op == aligner.ChangeOps.NoChange: continue # don't bother with notes with too big of an interval between them