diff --git a/250529_DIW_2505B_채점결과.xlsx b/250529_DIW_2505B_채점결과.xlsx new file mode 100644 index 0000000..8fe9444 Binary files /dev/null and b/250529_DIW_2505B_채점결과.xlsx differ diff --git a/250529_DIW_2505C_채점결과.xlsx b/250529_DIW_2505C_채점결과.xlsx new file mode 100644 index 0000000..af9d974 Binary files /dev/null and b/250529_DIW_2505C_채점결과.xlsx differ diff --git a/250529_DIW_2505회_A형_TEST.xlsx b/250529_DIW_2505회_A형_TEST.xlsx deleted file mode 100644 index f271365..0000000 Binary files a/250529_DIW_2505회_A형_TEST.xlsx and /dev/null differ diff --git a/diwScoring2.py b/diwScoring2.py index b545121..85e32de 100644 --- a/diwScoring2.py +++ b/diwScoring2.py @@ -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)