2505회 채점결과 수정

This commit is contained in:
2025-05-29 17:33:36 +09:00
parent 51b3203d6c
commit be04a0896f
4 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1008,8 +1008,9 @@ class XMLScorer:
typo_row.update({f'오타{i+1}': typo_err for i, typo_err in enumerate(typo_err_list)})
typo_data.append(typo_row)
typo_df = pd.DataFrame(typo_data).transpose()
typo_df = pd.DataFrame(typo_data)
typo_df = typo_df.transpose()
# transpose 후 행 -> 열 변환했을 때의 인덱스 제거 (기본 인덱스 제거)
typo_df.reset_index(drop=True, inplace=True)
@@ -1041,7 +1042,6 @@ class XMLScorer:
return output_path
def main():
# 시험회차 및 유형
@@ -1049,9 +1049,9 @@ def main():
# 채점하고자 하는 유형은 주석 해제
exam_types = [
'A',
# 'A',
'B',
'C',
# 'C',
# 'D',
]
@@ -1072,7 +1072,7 @@ def main():
# 엑셀 파일명 (비어있으면 자동생성) (예시: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)