2504회 수시2,3 채점자료 업데이트
This commit is contained in:
@@ -560,11 +560,11 @@ class XMLScorer:
|
||||
def main():
|
||||
|
||||
# 시험회차 및 유형
|
||||
exam_round = '2504'
|
||||
exam_round = '2504_3'
|
||||
exam_types = [
|
||||
'A',
|
||||
# 'B',
|
||||
# 'C',
|
||||
# 'A',
|
||||
'B',
|
||||
'C',
|
||||
]
|
||||
test_mode = False
|
||||
# test_mode = True
|
||||
@@ -573,17 +573,23 @@ def main():
|
||||
for exam_type in exam_types:
|
||||
|
||||
# JSON 채점기준표 파일 (예시:DIW_2503A.json)
|
||||
scoring_criteria_path = f'./DIW_{exam_round}{exam_type}.json'
|
||||
scoring_criteria_path = f'./DIW_{exam_round}.json'
|
||||
# scoring_criteria_path = f'./DIW_{exam_round}{exam_type}.json'
|
||||
|
||||
# xml(hml)파일 디렉토리 경로 (예시:./output/A/DIW)
|
||||
xml_directory = f'./output/{exam_type}/{"TEST" if test_mode else "DIW"}'
|
||||
# xml_directory = f'./output/{exam_type}/{"TEST" if test_mode else "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_type}/DIW/DIW_{exam_round}{exam_type}.hml'
|
||||
correct_answer_file = f'./output/{exam_round}/{exam_type}/DIW/DIW_{exam_round}{exam_type}.hml'
|
||||
|
||||
# 엑셀 파일명 (비어있으면 자동생성) (예시:241001_DIW_2503A_채점결과.xlsx)
|
||||
timestamp = datetime.now().strftime("%y%m%d")
|
||||
output_path = f'{timestamp}_DIW_{exam_round}{exam_type}_{"TEST" if test_mode else "채점결과"}.xlsx'
|
||||
output_path = f'{timestamp}_DIW_{exam_round}회_{exam_type}형_{"TEST" if test_mode else "채점결과"}.xlsx'
|
||||
|
||||
# 채점 클래스 초기화
|
||||
scorer = XMLScorer(scoring_criteria_path)
|
||||
|
||||
Reference in New Issue
Block a user