Fix linting issues
This commit is contained in:
parent
7aead6f8ef
commit
740ccbcd31
@ -225,7 +225,7 @@ def convert_tja_to_fumen(tja):
|
||||
branch_points_measure = 0
|
||||
for idx_d, data in enumerate(measure_tja.data):
|
||||
# Compute the ms position of the note
|
||||
pos_ratio = ((data.pos - measure_tja.pos_start) /
|
||||
pos_ratio = ((data.pos - measure_tja.pos_start) /
|
||||
(measure_tja.pos_end - measure_tja.pos_start))
|
||||
note_pos = (measure_fumen.duration * pos_ratio)
|
||||
|
||||
|
@ -31,7 +31,7 @@ def parse_tja(fname_tja):
|
||||
def split_tja_lines_into_courses(lines):
|
||||
"""
|
||||
Parse TJA metadata in order to divide TJA lines into separate courses.
|
||||
|
||||
|
||||
In TJA files, metadata lines are denoted by a colon (':'). These lines
|
||||
provide general info about the song (BPM, TITLE, OFFSET, etc.). They also
|
||||
define properties for each course in the song (difficulty, level, etc.).
|
||||
|
@ -104,7 +104,7 @@ class FumenMeasure(DefaultObject):
|
||||
self.branches = {b: FumenBranch() for b in BRANCH_NAMES}
|
||||
self.padding1 = padding1
|
||||
self.padding2 = padding2
|
||||
|
||||
|
||||
def set_duration(self, time_sig, measure_length, subdivisions):
|
||||
"""Compute the millisecond duration of the measure."""
|
||||
# First, we compute the duration for a full 4/4 measure.
|
||||
@ -139,7 +139,7 @@ class FumenMeasure(DefaultObject):
|
||||
|
||||
# Compute the end offset by adding the duration to the start offset
|
||||
self.offset_end = self.offset_start + self.duration
|
||||
|
||||
|
||||
def set_branch_info(self, branch_condition, branch_points_total,
|
||||
current_branch, first_branch_condition, has_section):
|
||||
"""Compute the values that represent branching/diverge conditions."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user