2505회 채점결과 수정
This commit is contained in:
BIN
250529_DIW_2505B_채점결과.xlsx
Normal file
BIN
250529_DIW_2505B_채점결과.xlsx
Normal file
Binary file not shown.
BIN
250529_DIW_2505C_채점결과.xlsx
Normal file
BIN
250529_DIW_2505C_채점결과.xlsx
Normal file
Binary file not shown.
Binary file not shown.
@@ -1009,7 +1009,8 @@ class XMLScorer:
|
|||||||
|
|
||||||
typo_data.append(typo_row)
|
typo_data.append(typo_row)
|
||||||
|
|
||||||
typo_df = pd.DataFrame(typo_data).transpose()
|
typo_df = pd.DataFrame(typo_data)
|
||||||
|
typo_df = typo_df.transpose()
|
||||||
# transpose 후 행 -> 열 변환했을 때의 인덱스 제거 (기본 인덱스 제거)
|
# transpose 후 행 -> 열 변환했을 때의 인덱스 제거 (기본 인덱스 제거)
|
||||||
typo_df.reset_index(drop=True, inplace=True)
|
typo_df.reset_index(drop=True, inplace=True)
|
||||||
|
|
||||||
@@ -1041,7 +1042,6 @@ class XMLScorer:
|
|||||||
|
|
||||||
return output_path
|
return output_path
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
# 시험회차 및 유형
|
# 시험회차 및 유형
|
||||||
@@ -1049,9 +1049,9 @@ def main():
|
|||||||
|
|
||||||
# 채점하고자 하는 유형은 주석 해제
|
# 채점하고자 하는 유형은 주석 해제
|
||||||
exam_types = [
|
exam_types = [
|
||||||
'A',
|
# 'A',
|
||||||
'B',
|
'B',
|
||||||
'C',
|
# 'C',
|
||||||
# 'D',
|
# 'D',
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -1072,7 +1072,7 @@ def main():
|
|||||||
|
|
||||||
# 엑셀 파일명 (비어있으면 자동생성) (예시:241001_DIW_2503A_채점결과.xlsx)
|
# 엑셀 파일명 (비어있으면 자동생성) (예시:241001_DIW_2503A_채점결과.xlsx)
|
||||||
timestamp = datetime.now().strftime("%y%m%d")
|
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)
|
scorer = XMLScorer(scoring_criteria_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user