1
0
mirror of synced 2024-11-24 05:30:11 +01:00

parsers.py: Rename read_fumen function

This commit is contained in:
Viv 2023-07-21 23:18:09 -04:00
parent 9d0d8b9314
commit 60a9e249cd
2 changed files with 4 additions and 4 deletions

View File

@ -275,7 +275,7 @@ def parse_tja_course_data(course):
# Fumen-parsing functions # # Fumen-parsing functions #
############################################################################### ###############################################################################
def read_fumen(fumen_file, exclude_empty_measures=False): def parse_fumen(fumen_file, exclude_empty_measures=False):
""" """
Parse bytes of a fumen .bin file into nested measures, branches, and notes. Parse bytes of a fumen .bin file into nested measures, branches, and notes.
""" """

View File

@ -7,7 +7,7 @@ import glob
import pytest import pytest
from tja2fumen import main as convert from tja2fumen import main as convert
from tja2fumen.parsers import read_fumen from tja2fumen.parsers import parse_fumen
from tja2fumen.constants import COURSE_IDS, NORMALIZE_COURSE from tja2fumen.constants import COURSE_IDS, NORMALIZE_COURSE
@ -69,8 +69,8 @@ def test_converted_tja_vs_cached_fumen(id_song, tmp_path, entry_point):
COURSE_IDS.items()}[i_difficult_id]] # noqa COURSE_IDS.items()}[i_difficult_id]] # noqa
# 0. Read fumen data (converted vs. cached) # 0. Read fumen data (converted vs. cached)
path_out_fumen = os.path.join(path_bin, os.path.basename(path_out)) path_out_fumen = os.path.join(path_bin, os.path.basename(path_out))
co_song = read_fumen(path_out, exclude_empty_measures=True) co_song = parse_fumen(path_out, exclude_empty_measures=True)
ca_song = read_fumen(path_out_fumen, exclude_empty_measures=True) ca_song = parse_fumen(path_out_fumen, exclude_empty_measures=True)
# 1. Check song headers # 1. Check song headers
checkValidHeader(co_song.header) checkValidHeader(co_song.header)
checkValidHeader(ca_song.header) checkValidHeader(ca_song.header)