Skip to content

Commit

Permalink
Fix: 移除了轨道号判定
Browse files Browse the repository at this point in the history
  • Loading branch information
feightwywx authored Jan 8, 2023
1 parent f15728c commit f029b8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/arcfutil/aff/note/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ def __str__(self):

def __setattr__(self, key, value):
super(Tap, self).__setattr__(key, value)
if key == 'lane':
if not 0 < value < 5:
raise AffNoteValueError('invalid value {} for attribute "lane" (only accept 1~4)'.format(value))
# 移除了轨道号判定
# if key == 'lane':
# if not 0 < value < 5:
# raise AffNoteValueError('invalid value {} for attribute "lane" (only accept 1~4)'.format(value))

def mirror(self):
self.lane = 5 - self.lane # Simple magic number
Expand Down

0 comments on commit f029b8b

Please sign in to comment.