2622 채점자료 업데이트
This commit is contained in:
@@ -1074,6 +1074,7 @@ class XMLScorer:
|
||||
'원형': "//c:pieChart",
|
||||
'분산형': "//c:scatterChart",
|
||||
'표식만있는분산형': "//c:scatterChart[c:scatterStyle[@val='marker']]",
|
||||
'곡선이있는분산형': "//c:scatterChart[c:scatterStyle[@val='smooth']]"
|
||||
}
|
||||
chart_type = criterion.get('chart_type').replace(" ","")
|
||||
|
||||
@@ -1474,15 +1475,15 @@ class XMLScorer:
|
||||
def main():
|
||||
|
||||
# 시험회차 및 유형
|
||||
exam_round = '2601'
|
||||
exam_round = '2622'
|
||||
# exam_round = '2522'
|
||||
|
||||
# 채점하고자 하는 유형은 주석 해제
|
||||
exam_types = [
|
||||
# 'A',
|
||||
# 'B',
|
||||
'A',
|
||||
'B',
|
||||
'C',
|
||||
# 'D',
|
||||
'D',
|
||||
]
|
||||
|
||||
test_mode = False
|
||||
@@ -1491,7 +1492,7 @@ def main():
|
||||
output_excel_paths = []
|
||||
for exam_type in exam_types:
|
||||
# JSON 채점기준표 파일 (예시:DIW_2503A.json)
|
||||
scoring_criteria_path = f'./DIW_{exam_round}{exam_type}.json'
|
||||
scoring_criteria_path = f'./JSON/{exam_round}/DIW_{exam_round}{exam_type}.json'
|
||||
|
||||
# xml(hml)파일 디렉토리 경로 (예시:./output/2503/A/DIW)
|
||||
xml_directory = f'./output/{exam_round}/{exam_type}/{"TEST" if test_mode else "DIW"}'
|
||||
@@ -1501,7 +1502,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'./score_result/{timestamp}_DIW_{exam_round}{exam_type}_{"TEST" if test_mode else "채점결과"}.xlsx'
|
||||
|
||||
# 채점 클래스 초기화
|
||||
scorer = XMLScorer(scoring_criteria_path)
|
||||
|
||||
Reference in New Issue
Block a user