2508 채 자료 업데이트
This commit is contained in:
@@ -388,17 +388,18 @@ class XMLScorer:
|
||||
|
||||
elif (category or "") == "majorGridlines":
|
||||
# 줄/칸 전환여부 확인
|
||||
table_col_count = root.xpath("//SECTION[2]//TABLE/@ColCount")
|
||||
# table_col_count = root.xpath("//SECTION[2]//TABLE/@ColCount")
|
||||
table_col_count = root.xpath("//TABLE/@ColCount")
|
||||
|
||||
print("🟡테이블 열 개수: ", int(table_col_count[0]) if table_col_count else 0)
|
||||
# print("🟡테이블 열 개수: ", int(table_col_count[0]) if table_col_count else 0)
|
||||
|
||||
chart_ser_count = chart_tree.xpath("count(//c:ser)", namespaces=namespaces) if chart_xpath else 0
|
||||
|
||||
print("🟡차트 데이터 개수: ", int(chart_ser_count) if isinstance(chart_ser_count, (int, float)) else 0)
|
||||
# print("🟡차트 데이터 개수: ", int(chart_ser_count) if isinstance(chart_ser_count, (int, float)) else 0)
|
||||
|
||||
isXYtransposed = False
|
||||
if table_col_count and chart_ser_count:
|
||||
if int(chart_ser_count) >= int(table_col_count[0]):
|
||||
if int(chart_ser_count) > int(table_col_count[0])-1:
|
||||
isXYtransposed = True
|
||||
|
||||
# 값 축 주눈금선 존재하는지 여부 확인
|
||||
@@ -1271,8 +1272,8 @@ class XMLScorer:
|
||||
def main():
|
||||
|
||||
# 시험회차 및 유형
|
||||
exam_round = '2507'
|
||||
# exam_round = '2506_5'
|
||||
# exam_round = '2507'
|
||||
exam_round = '2508'
|
||||
|
||||
# 채점하고자 하는 유형은 주석 해제
|
||||
exam_types = [
|
||||
@@ -1292,7 +1293,6 @@ def main():
|
||||
|
||||
# xml(hml)파일 디렉토리 경로 (예시:./output/2503/A/DIW)
|
||||
xml_directory = f'./output/{exam_round}/{exam_type}/{"TEST" if test_mode else "DIW"}'
|
||||
|
||||
# 오탈자 체크를 위한 정답 파일 경로 (예시:./output/A/DIW/DIW_2503A.hml)
|
||||
# correct_answer_file = f'./output/{exam_type}/DIW/DIW_{exam_round}{exam_type}.hml'
|
||||
correct_answer_file = f'./output/{exam_round}/{exam_type}/DIW/DIW_{exam_round}{exam_type}.hml'
|
||||
|
||||
Reference in New Issue
Block a user