Skip to content

Commit

Permalink
fix import order
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Mar 10, 2018
1 parent 8a3ec9e commit 3b3ec45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions music21/alpha/analysis/aligner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# License: LGPL or BSD, see license.txt
#-------------------------------------------------------------------------------
from collections import Counter
import enum
import operator
import unittest

Expand All @@ -17,8 +18,6 @@
from music21 import metadata
from music21.alpha.analysis import hasher

import enum

class AlignerException(exceptions21.Music21Exception):
pass

Expand Down
4 changes: 2 additions & 2 deletions music21/alpha/analysis/fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3b3ec45

Please sign in to comment.