Browse Source

made 'fetchall' option for make_match1

master
김선중 1 year ago
parent
commit
0bb500fe4a
3 changed files with 708 additions and 358 deletions
  1. +347
    -0
      Analysis/0411_unp-left_p-right-uturn/0411_unp-left.ipynb
  2. +342
    -342
      Results/sn_1704418200.add.xml
  3. +19
    -16
      Scripts/preprocess_daily.py

+ 347
- 0
Analysis/0411_unp-left_p-right-uturn/0411_unp-left.ipynb View File

@ -0,0 +1,347 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import pandas as pd\n",
"import numpy as np\n",
"import sys\n",
"sys.path.append('../../Scripts')\n",
"from preprocess_daily import DailyPreprocessor\n",
"from generate_signals import SignalGenerator"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"줄임말 목록\n",
"- `i` : 교차로번호, `inter_no`\n",
"- `f` : 진입, from, `inc_edge_id`\n",
"- `t` : 진출, to, `out_edge_id`\n",
"- `vec` : 방향벡터, unit vector (`np.array([0.6, 0.8])`)\n",
"- `dire` : 방위, direction (동, 서, 남, 북, 북동, 북서, 남동, 남서)\n",
"- `rvec` : 정방향 방향벡터, unit vector to the right direction (`np.array([0,1])`)\n",
"\n",
"필요한 객체들 목록\n",
"\n",
"- `i2dire2rvec` : `inter_no` $\\mapsto$ `dire2rvec`\n",
" - `dire2rvec` : `dire` $\\mapsto$ `rvec`\n",
"- `i2f` : `inter_no` $\\mapsto$ `f_edges`\n",
"- `i2t` : `inter_no` $\\mapsto$ `t_edges`\n",
"- `i2f2dire` : `inter_no` $\\mapsto$ `f21dire`\n",
" - `f2dire` : `from_edge` $\\mapsto$ `dire`\n",
"- `i2t2dire` : `inter_no` $\\mapsto$ `t21dire`\n",
" - `t2dire` : `to_edge` $\\mapsto$ `dire`"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1. 데이터를 로드합니다.\n",
"1-1. 네트워크가 로드되었습니다.\n",
"1-2. 테이블들이 로드되었습니다.\n",
"1-3. 네트워크의 모든 clean state requirement들을 체크했습니다.\n",
"1-4. 테이블들의 무결성 검사를 완료했습니다.\n",
"2. 중간산출물을 생성합니다.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"이동류정보 불러오는 중: 100%|██████████| 17280/17280 [00:14<00:00, 1185.13it/s]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2-1. 매칭 테이블들을 생성했습니다.\n",
"2-2. 비보호우회전(g)을 배정했습니다.\n",
"2-3. 직진 및 좌회전(G)을 배정했습니다.\n",
"2-2. node2num_cycles.json를 저장했습니다.\n",
"3. 이슈사항을 저장합니다.\n"
]
}
],
"source": [
"self = DailyPreprocessor()\n",
"self.main()"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>inter_no</th>\n",
" <th>phase_no</th>\n",
" <th>ring_type</th>\n",
" <th>move_no</th>\n",
" <th>inc_dir</th>\n",
" <th>out_dir</th>\n",
" <th>inc_angle</th>\n",
" <th>out_angle</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>175</td>\n",
" <td>1</td>\n",
" <td>A</td>\n",
" <td>8</td>\n",
" <td>남</td>\n",
" <td>북</td>\n",
" <td>179</td>\n",
" <td>179</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>175</td>\n",
" <td>1</td>\n",
" <td>B</td>\n",
" <td>4</td>\n",
" <td>북</td>\n",
" <td>남</td>\n",
" <td>001</td>\n",
" <td>001</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>175</td>\n",
" <td>2</td>\n",
" <td>A</td>\n",
" <td>7</td>\n",
" <td>북</td>\n",
" <td>동</td>\n",
" <td>001</td>\n",
" <td>001</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>175</td>\n",
" <td>2</td>\n",
" <td>B</td>\n",
" <td>3</td>\n",
" <td>남</td>\n",
" <td>서</td>\n",
" <td>179</td>\n",
" <td>179</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>175</td>\n",
" <td>3</td>\n",
" <td>A</td>\n",
" <td>6</td>\n",
" <td>동</td>\n",
" <td>서</td>\n",
" <td>090</td>\n",
" <td>090</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" inter_no phase_no ring_type move_no inc_dir out_dir inc_angle out_angle\n",
"0 175 1 A 8 남 북 179 179\n",
"1 175 1 B 4 북 남 001 001\n",
"2 175 2 A 7 북 동 001 001\n",
"3 175 2 B 3 남 서 179 179\n",
"4 175 3 A 6 동 서 090 090"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>inter_no</th>\n",
" <th>phase_no</th>\n",
" <th>ring_type</th>\n",
" <th>move_no</th>\n",
" <th>inc_dir</th>\n",
" <th>out_dir</th>\n",
" <th>inc_angle</th>\n",
" <th>out_angle</th>\n",
" <th>inc_edge</th>\n",
" <th>out_edge</th>\n",
" <th>node_id</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>175</td>\n",
" <td>1</td>\n",
" <td>A</td>\n",
" <td>8</td>\n",
" <td>남</td>\n",
" <td>북</td>\n",
" <td>179</td>\n",
" <td>179</td>\n",
" <td>-571542797_02</td>\n",
" <td>571542797_02</td>\n",
" <td>i0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>175</td>\n",
" <td>1</td>\n",
" <td>B</td>\n",
" <td>4</td>\n",
" <td>북</td>\n",
" <td>남</td>\n",
" <td>001</td>\n",
" <td>001</td>\n",
" <td>-571500487_01</td>\n",
" <td>571500487_01</td>\n",
" <td>i0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>175</td>\n",
" <td>2</td>\n",
" <td>A</td>\n",
" <td>7</td>\n",
" <td>북</td>\n",
" <td>동</td>\n",
" <td>001</td>\n",
" <td>001</td>\n",
" <td>-571500487_01</td>\n",
" <td>571500487_01</td>\n",
" <td>i0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>175</td>\n",
" <td>2</td>\n",
" <td>B</td>\n",
" <td>3</td>\n",
" <td>남</td>\n",
" <td>서</td>\n",
" <td>179</td>\n",
" <td>179</td>\n",
" <td>-571542797_02</td>\n",
" <td>571542797_02</td>\n",
" <td>i0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>175</td>\n",
" <td>3</td>\n",
" <td>A</td>\n",
" <td>6</td>\n",
" <td>동</td>\n",
" <td>서</td>\n",
" <td>090</td>\n",
" <td>090</td>\n",
" <td>571545870_02</td>\n",
" <td>571545870_01</td>\n",
" <td>i0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" inter_no phase_no ring_type move_no inc_dir out_dir inc_angle out_angle \\\n",
"0 175 1 A 8 남 북 179 179 \n",
"1 175 1 B 4 북 남 001 001 \n",
"2 175 2 A 7 북 동 001 001 \n",
"3 175 2 B 3 남 서 179 179 \n",
"4 175 3 A 6 동 서 090 090 \n",
"\n",
" inc_edge out_edge node_id \n",
"0 -571542797_02 571542797_02 i0 \n",
"1 -571500487_01 571500487_01 i0 \n",
"2 -571500487_01 571500487_01 i0 \n",
"3 -571542797_02 571542797_02 i0 \n",
"4 571545870_02 571545870_01 i0 "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"display(self.match4.head())\n",
"display(self.match5.head())"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "sts",
"language": "python",
"name": "sts"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

+ 342
- 342
Results/sn_1704418200.add.xml View File

@ -1,90 +1,90 @@
<additional> <additional>
<tlLogic id="c30" type="static" programID="c30_prog" offset="-21">
<tlLogic id="c30" type="static" programID="c30_prog" offset="-80">
<phase duration="34" state="rrrrrr"/> <phase duration="34" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/> <phase duration="4" state="rrrrrr"/>
<phase duration="2" state="rrrrrr"/>
<phase duration="33" state="GGGGGG"/>
<phase duration="4" state="GGGGGG"/>
<phase duration="2" state="GGGGGG"/>
<phase duration="37" state="GGGGGG"/>
<phase duration="4" state="GGGGGG"/>
<phase duration="2" state="GGGGGG"/>
<phase duration="16" state="GGGGGG"/>
<phase duration="4" state="yyyyyy"/>
<phase duration="2" state="rrrrrr"/>
<phase duration="32" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="34" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="38" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="17" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="33" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="34" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="38" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="17" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="33" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="34" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="38" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/> <phase duration="4" state="rrrrrr"/>
<phase duration="2" state="rrrrrr"/>
<phase duration="33" state="GGGGGG"/>
<phase duration="4" state="GGGGGG"/>
<phase duration="2" state="GGGGGG"/>
<phase duration="37" state="GGGGGG"/>
<phase duration="4" state="GGGGGG"/>
<phase duration="2" state="GGGGGG"/>
<phase duration="16" state="GGGGGG"/>
<phase duration="4" state="yyyyyy"/>
<phase duration="2" state="rrrrrr"/>
<phase duration="32" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="17" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/> <phase duration="4" state="rrrrrr"/>
<phase duration="2" state="rrrrrr"/>
<phase duration="33" state="GGGGGG"/>
<phase duration="4" state="GGGGGG"/>
<phase duration="2" state="GGGGGG"/>
<phase duration="37" state="GGGGGG"/>
<phase duration="4" state="GGGGGG"/>
<phase duration="2" state="GGGGGG"/>
<phase duration="16" state="GGGGGG"/>
<phase duration="4" state="yyyyyy"/>
<phase duration="2" state="rrrrrr"/>
<phase duration="32" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="33" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/> <phase duration="4" state="rrrrrr"/>
<phase duration="2" state="rrrrrr"/>
<phase duration="33" state="GGGGGG"/>
<phase duration="4" state="GGGGGG"/>
<phase duration="2" state="GGGGGG"/>
<phase duration="37" state="GGGGGG"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="34" state="rrrrrr"/>
<phase duration="4" state="rrrrrr"/>
<phase duration="1" state="rrrrrr"/>
<phase duration="38" state="rrrrrr"/>
</tlLogic> </tlLogic>
<tlLogic id="i0" type="static" programID="i0_prog" offset="-100">
<phase duration="39" state="gGGrgrrrgGGGGrgrr"/>
<phase duration="4" state="gyyrgrrrgyyyyrgrr"/>
<tlLogic id="i0" type="static" programID="i0_prog" offset="-161">
<phase duration="38" state="gGGrgrrrgGGGGrgrr"/>
<phase duration="5" state="gyyrgrrrgyyyyrgrr"/>
<phase duration="1" state="grrrgrrrgrrrrrgrr"/> <phase duration="1" state="grrrgrrrgrrrrrgrr"/>
<phase duration="40" state="grrGgrrrgrrrrGgrr"/>
<phase duration="4" state="grrygrrrgrrrrygrr"/>
<phase duration="39" state="grrGgrrrgrrrrGgrr"/>
<phase duration="5" state="grrygrrrgrrrrygrr"/>
<phase duration="1" state="grrrgGGrgrrrrrgrr"/> <phase duration="1" state="grrrgGGrgrrrrrgrr"/>
<phase duration="28" state="grrrgGGGgrrrrrgrr"/>
<phase duration="4" state="grrrgGGygrrrrrgrr"/>
<phase duration="27" state="grrrgGGGgrrrrrgrr"/>
<phase duration="5" state="grrrgGGygrrrrrgrr"/>
<phase duration="1" state="grrrgGGrgrrrrrgGr"/> <phase duration="1" state="grrrgGGrgrrrrrgGr"/>
<phase duration="17" state="grrrgGGrgrrrrrgGr"/>
<phase duration="4" state="grrrgyyrgrrrrrgGr"/>
<phase duration="16" state="grrrgGGrgrrrrrgGr"/>
<phase duration="5" state="grrrgyyrgrrrrrgGr"/>
<phase duration="1" state="grrrgrrrgrrrrrgGr"/> <phase duration="1" state="grrrgrrrgrrrrrgGr"/>
<phase duration="32" state="grrrgrrrgrrrrrgGG"/>
<phase duration="4" state="grrrgrrrgrrrrrgyy"/>
<phase duration="31" state="grrrgrrrgrrrrrgGG"/>
<phase duration="5" state="grrrgrrrgrrrrrgyy"/>
<phase duration="1" state="grrrgrrrgrrrrrgrr"/> <phase duration="1" state="grrrgrrrgrrrrrgrr"/>
<phase duration="38" state="gGGrgrrrgGGGGrgrr"/>
<phase duration="4" state="gyyrgrrrgyyyyrgrr"/>
<phase duration="37" state="gGGrgrrrgGGGGrgrr"/>
<phase duration="5" state="gyyrgrrrgyyyyrgrr"/>
<phase duration="1" state="grrrgrrrgrrrrrgrr"/> <phase duration="1" state="grrrgrrrgrrrrrgrr"/>
<phase duration="40" state="grrGgrrrgrrrrGgrr"/>
<phase duration="4" state="grrygrrrgrrrrygrr"/>
<phase duration="39" state="grrGgrrrgrrrrGgrr"/>
<phase duration="5" state="grrygrrrgrrrrygrr"/>
<phase duration="1" state="grrrgGGrgrrrrrgrr"/> <phase duration="1" state="grrrgGGrgrrrrrgrr"/>
<phase duration="28" state="grrrgGGGgrrrrrgrr"/>
<phase duration="4" state="grrrgGGygrrrrrgrr"/>
<phase duration="27" state="grrrgGGGgrrrrrgrr"/>
<phase duration="5" state="grrrgGGygrrrrrgrr"/>
<phase duration="1" state="grrrgGGrgrrrrrgGr"/> <phase duration="1" state="grrrgGGrgrrrrrgGr"/>
<phase duration="17" state="grrrgGGrgrrrrrgGr"/>
<phase duration="4" state="grrrgyyrgrrrrrgGr"/>
<phase duration="16" state="grrrgGGrgrrrrrgGr"/>
<phase duration="5" state="grrrgyyrgrrrrrgGr"/>
<phase duration="1" state="grrrgrrrgrrrrrgGr"/> <phase duration="1" state="grrrgrrrgrrrrrgGr"/>
<phase duration="32" state="grrrgrrrgrrrrrgGG"/>
<phase duration="4" state="grrrgrrrgrrrrrgyy"/>
<phase duration="31" state="grrrgrrrgrrrrrgGG"/>
<phase duration="5" state="grrrgrrrgrrrrrgyy"/>
<phase duration="1" state="grrrgrrrgrrrrrgrr"/> <phase duration="1" state="grrrgrrrgrrrrrgrr"/>
<phase duration="38" state="gGGrgrrrgGGGGrgrr"/>
<phase duration="4" state="gyyrgrrrgyyyyrgrr"/>
<phase duration="37" state="gGGrgrrrgGGGGrgrr"/>
<phase duration="5" state="gyyrgrrrgyyyyrgrr"/>
<phase duration="1" state="grrrgrrrgrrrrrgrr"/> <phase duration="1" state="grrrgrrrgrrrrrgrr"/>
<phase duration="40" state="grrGgrrrgrrrrGgrr"/>
<phase duration="4" state="grrygrrrgrrrrygrr"/>
<phase duration="39" state="grrGgrrrgrrrrGgrr"/>
<phase duration="5" state="grrygrrrgrrrrygrr"/>
<phase duration="1" state="grrrgGGrgrrrrrgrr"/> <phase duration="1" state="grrrgGGrgrrrrrgrr"/>
<phase duration="28" state="grrrgGGGgrrrrrgrr"/>
<phase duration="27" state="grrrgGGGgrrrrrgrr"/>
<phase duration="22" state="grrrgGGygrrrrrgrr"/> <phase duration="22" state="grrrgGGygrrrrrgrr"/>
</tlLogic> </tlLogic>
<tlLogic id="i1" type="static" programID="i1_prog" offset="-100">
<tlLogic id="i1" type="static" programID="i1_prog" offset="-126">
<phase duration="33" state="gGGGGGrgrr"/> <phase duration="33" state="gGGGGGrgrr"/>
<phase duration="4" state="gyyGGGrgrr"/> <phase duration="4" state="gyyGGGrgrr"/>
<phase duration="1" state="grrGGGrgrr"/> <phase duration="1" state="grrGGGrgrr"/>
@ -94,13 +94,13 @@
<phase duration="35" state="grrrrrrgGG"/> <phase duration="35" state="grrrrrrgGG"/>
<phase duration="4" state="grrrrrrgyy"/> <phase duration="4" state="grrrrrrgyy"/>
<phase duration="1" state="grrrrrrgrr"/> <phase duration="1" state="grrrrrrgrr"/>
<phase duration="32" state="gGGGGGrgrr"/>
<phase duration="31" state="gGGGGGrgrr"/>
<phase duration="4" state="gyyGGGrgrr"/> <phase duration="4" state="gyyGGGrgrr"/>
<phase duration="1" state="grrGGGrgrr"/> <phase duration="1" state="grrGGGrgrr"/>
<phase duration="98" state="grrGGGGgrr"/>
<phase duration="96" state="grrGGGGgrr"/>
<phase duration="4" state="grryyyygrr"/> <phase duration="4" state="grryyyygrr"/>
<phase duration="1" state="grrrrrrgrr"/> <phase duration="1" state="grrrrrrgrr"/>
<phase duration="35" state="grrrrrrgGG"/>
<phase duration="34" state="grrrrrrgGG"/>
<phase duration="4" state="grrrrrrgyy"/> <phase duration="4" state="grrrrrrgyy"/>
<phase duration="1" state="grrrrrrgrr"/> <phase duration="1" state="grrrrrrgrr"/>
<phase duration="32" state="gGGGGGrgrr"/> <phase duration="32" state="gGGGGGrgrr"/>
@ -117,7 +117,7 @@
<phase duration="1" state="grrGGGrgrr"/> <phase duration="1" state="grrGGGrgrr"/>
<phase duration="98" state="grrGGGGgrr"/> <phase duration="98" state="grrGGGGgrr"/>
</tlLogic> </tlLogic>
<tlLogic id="i2" type="static" programID="i2_prog" offset="-10">
<tlLogic id="i2" type="static" programID="i2_prog" offset="-169">
<phase duration="39" state="GGgrGGG"/> <phase duration="39" state="GGgrGGG"/>
<phase duration="4" state="yygryyy"/> <phase duration="4" state="yygryyy"/>
<phase duration="1" state="rrgrrrr"/> <phase duration="1" state="rrgrrrr"/>
@ -162,110 +162,110 @@
<phase duration="1" state="rrgrrrr"/> <phase duration="1" state="rrgrrrr"/>
<phase duration="65" state="rrgrrrr"/> <phase duration="65" state="rrgrrrr"/>
</tlLogic> </tlLogic>
<tlLogic id="i3" type="static" programID="i3_prog" offset="-21">
<tlLogic id="i3" type="static" programID="i3_prog" offset="-80">
<phase duration="34" state="gGGGrgrrrrgGGGrgrrrr"/> <phase duration="34" state="gGGGrgrrrrgGGGrgrrrr"/>
<phase duration="4" state="gyyyrgrrrrgyyyrgrrrr"/> <phase duration="4" state="gyyyrgrrrrgyyyrgrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="33" state="grrrGgrrrrgrrrGgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="34" state="grrrGgrrrrgrrrGgrrrr"/>
<phase duration="4" state="grrrygrrrrgrrrygrrrr"/> <phase duration="4" state="grrrygrrrrgrrrygrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="37" state="grrrrgrrrrgrrrrgGGGG"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="38" state="grrrrgrrrrgrrrrgGGGG"/>
<phase duration="4" state="grrrrgrrrrgrrrrgyyyy"/> <phase duration="4" state="grrrrgrrrrgrrrrgyyyy"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="16" state="grrrrgGGGGgrrrrgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="17" state="grrrrgGGGGgrrrrgrrrr"/>
<phase duration="4" state="grrrrgyyyygrrrrgrrrr"/> <phase duration="4" state="grrrrgyyyygrrrrgrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="32" state="gGGGrgrrrrgGGGrgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="33" state="gGGGrgrrrrgGGGrgrrrr"/>
<phase duration="4" state="gyyyrgrrrrgyyyrgrrrr"/> <phase duration="4" state="gyyyrgrrrrgyyyrgrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="33" state="grrrGgrrrrgrrrGgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="34" state="grrrGgrrrrgrrrGgrrrr"/>
<phase duration="4" state="grrrygrrrrgrrrygrrrr"/> <phase duration="4" state="grrrygrrrrgrrrygrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="37" state="grrrrgrrrrgrrrrgGGGG"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="38" state="grrrrgrrrrgrrrrgGGGG"/>
<phase duration="4" state="grrrrgrrrrgrrrrgyyyy"/> <phase duration="4" state="grrrrgrrrrgrrrrgyyyy"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="16" state="grrrrgGGGGgrrrrgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="17" state="grrrrgGGGGgrrrrgrrrr"/>
<phase duration="4" state="grrrrgyyyygrrrrgrrrr"/> <phase duration="4" state="grrrrgyyyygrrrrgrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="32" state="gGGGrgrrrrgGGGrgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="33" state="gGGGrgrrrrgGGGrgrrrr"/>
<phase duration="4" state="gyyyrgrrrrgyyyrgrrrr"/> <phase duration="4" state="gyyyrgrrrrgyyyrgrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="33" state="grrrGgrrrrgrrrGgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="34" state="grrrGgrrrrgrrrGgrrrr"/>
<phase duration="4" state="grrrygrrrrgrrrygrrrr"/> <phase duration="4" state="grrrygrrrrgrrrygrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="37" state="grrrrgrrrrgrrrrgGGGG"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="38" state="grrrrgrrrrgrrrrgGGGG"/>
<phase duration="4" state="grrrrgrrrrgrrrrgyyyy"/> <phase duration="4" state="grrrrgrrrrgrrrrgyyyy"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="16" state="grrrrgGGGGgrrrrgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="17" state="grrrrgGGGGgrrrrgrrrr"/>
<phase duration="4" state="grrrrgyyyygrrrrgrrrr"/> <phase duration="4" state="grrrrgyyyygrrrrgrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="32" state="gGGGrgrrrrgGGGrgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="33" state="gGGGrgrrrrgGGGrgrrrr"/>
<phase duration="4" state="gyyyrgrrrrgyyyrgrrrr"/> <phase duration="4" state="gyyyrgrrrrgyyyrgrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="33" state="grrrGgrrrrgrrrGgrrrr"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="34" state="grrrGgrrrrgrrrGgrrrr"/>
<phase duration="4" state="grrrygrrrrgrrrygrrrr"/> <phase duration="4" state="grrrygrrrrgrrrygrrrr"/>
<phase duration="2" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="37" state="grrrrgrrrrgrrrrgGGGG"/>
<phase duration="1" state="grrrrgrrrrgrrrrgrrrr"/>
<phase duration="38" state="grrrrgrrrrgrrrrgGGGG"/>
</tlLogic> </tlLogic>
<tlLogic id="i6" type="static" programID="i6_prog" offset="-40">
<tlLogic id="i6" type="static" programID="i6_prog" offset="-140">
<phase duration="2" state="grrrgGGGrgrrgrrr"/> <phase duration="2" state="grrrgGGGrgrrgrrr"/>
<phase duration="22" state="grrrgGGGrgrrgrrr"/>
<phase duration="4" state="grrrgGGGrgrrgrrr"/>
<phase duration="23" state="grrrgGGGrgrrgrrr"/>
<phase duration="3" state="grrrgGGGrgrrgrrr"/>
<phase duration="2" state="grrrgGGGrgrrgGGr"/> <phase duration="2" state="grrrgGGGrgrrgGGr"/>
<phase duration="9" state="grrrgGGGrgrrgGGr"/>
<phase duration="4" state="grrrgyyyrgrrgGGr"/>
<phase duration="10" state="grrrgGGGrgrrgGGr"/>
<phase duration="3" state="grrrgyyyrgrrgGGr"/>
<phase duration="2" state="grrrgrrrrgrrgGGr"/> <phase duration="2" state="grrrgrrrrgrrgGGr"/>
<phase duration="37" state="grrrgrrrrgrrgGGG"/>
<phase duration="4" state="grrrgrrrrgrrgyyy"/>
<phase duration="38" state="grrrgrrrrgrrgGGG"/>
<phase duration="3" state="grrrgrrrrgrrgyyy"/>
<phase duration="2" state="grrrgrrrrgrrgrrr"/> <phase duration="2" state="grrrgrrrrgrrgrrr"/>
<phase duration="64" state="gGGGgrrrrgrrgrrr"/>
<phase duration="4" state="gyyygrrrrgrrgrrr"/>
<phase duration="65" state="gGGGgrrrrgrrgrrr"/>
<phase duration="3" state="gyyygrrrrgrrgrrr"/>
<phase duration="2" state="grrrgrrrrgrrgrrr"/> <phase duration="2" state="grrrgrrrrgrrgrrr"/>
<phase duration="18" state="grrrgrrrrgGGgrrr"/>
<phase duration="4" state="grrrgrrrrgyygrrr"/>
<phase duration="19" state="grrrgrrrrgGGgrrr"/>
<phase duration="3" state="grrrgrrrrgyygrrr"/>
<phase duration="2" state="grrrgGGGrgrrgrrr"/> <phase duration="2" state="grrrgGGGrgrrgrrr"/>
<phase duration="22" state="grrrgGGGrgrrgrrr"/>
<phase duration="4" state="grrrgGGGrgrrgrrr"/>
<phase duration="23" state="grrrgGGGrgrrgrrr"/>
<phase duration="3" state="grrrgGGGrgrrgrrr"/>
<phase duration="2" state="grrrgGGGrgrrgGGr"/> <phase duration="2" state="grrrgGGGrgrrgGGr"/>
<phase duration="9" state="grrrgGGGrgrrgGGr"/>
<phase duration="4" state="grrrgyyyrgrrgGGr"/>
<phase duration="10" state="grrrgGGGrgrrgGGr"/>
<phase duration="3" state="grrrgyyyrgrrgGGr"/>
<phase duration="2" state="grrrgrrrrgrrgGGr"/> <phase duration="2" state="grrrgrrrrgrrgGGr"/>
<phase duration="37" state="grrrgrrrrgrrgGGG"/>
<phase duration="4" state="grrrgrrrrgrrgyyy"/>
<phase duration="38" state="grrrgrrrrgrrgGGG"/>
<phase duration="3" state="grrrgrrrrgrrgyyy"/>
<phase duration="2" state="grrrgrrrrgrrgrrr"/> <phase duration="2" state="grrrgrrrrgrrgrrr"/>
<phase duration="64" state="gGGGgrrrrgrrgrrr"/>
<phase duration="4" state="gyyygrrrrgrrgrrr"/>
<phase duration="65" state="gGGGgrrrrgrrgrrr"/>
<phase duration="3" state="gyyygrrrrgrrgrrr"/>
<phase duration="2" state="grrrgrrrrgrrgrrr"/> <phase duration="2" state="grrrgrrrrgrrgrrr"/>
<phase duration="18" state="grrrgrrrrgGGgrrr"/>
<phase duration="4" state="grrrgrrrrgyygrrr"/>
<phase duration="19" state="grrrgrrrrgGGgrrr"/>
<phase duration="3" state="grrrgrrrrgyygrrr"/>
<phase duration="2" state="grrrgGGGrgrrgrrr"/> <phase duration="2" state="grrrgGGGrgrrgrrr"/>
<phase duration="22" state="grrrgGGGrgrrgrrr"/>
<phase duration="4" state="grrrgGGGrgrrgrrr"/>
<phase duration="23" state="grrrgGGGrgrrgrrr"/>
<phase duration="3" state="grrrgGGGrgrrgrrr"/>
<phase duration="2" state="grrrgGGGrgrrgGGr"/> <phase duration="2" state="grrrgGGGrgrrgGGr"/>
<phase duration="9" state="grrrgGGGrgrrgGGr"/>
<phase duration="4" state="grrrgyyyrgrrgGGr"/>
<phase duration="10" state="grrrgGGGrgrrgGGr"/>
<phase duration="3" state="grrrgyyyrgrrgGGr"/>
<phase duration="2" state="grrrgrrrrgrrgGGr"/> <phase duration="2" state="grrrgrrrrgrrgGGr"/>
<phase duration="37" state="grrrgrrrrgrrgGGG"/>
<phase duration="4" state="grrrgrrrrgrrgyyy"/>
<phase duration="38" state="grrrgrrrrgrrgGGG"/>
<phase duration="3" state="grrrgrrrrgrrgyyy"/>
<phase duration="2" state="grrrgrrrrgrrgrrr"/> <phase duration="2" state="grrrgrrrrgrrgrrr"/>
<phase duration="64" state="gGGGgrrrrgrrgrrr"/>
<phase duration="4" state="gyyygrrrrgrrgrrr"/>
<phase duration="65" state="gGGGgrrrrgrrgrrr"/>
<phase duration="3" state="gyyygrrrrgrrgrrr"/>
<phase duration="2" state="grrrgrrrrgrrgrrr"/> <phase duration="2" state="grrrgrrrrgrrgrrr"/>
<phase duration="18" state="grrrgrrrrgGGgrrr"/>
<phase duration="4" state="grrrgrrrrgyygrrr"/>
<phase duration="19" state="grrrgrrrrgGGgrrr"/>
<phase duration="3" state="grrrgrrrrgyygrrr"/>
<phase duration="2" state="grrrgGGGrgrrgrrr"/> <phase duration="2" state="grrrgGGGrgrrgrrr"/>
<phase duration="22" state="grrrgGGGrgrrgrrr"/>
<phase duration="4" state="grrrgGGGrgrrgrrr"/>
<phase duration="23" state="grrrgGGGrgrrgrrr"/>
<phase duration="3" state="grrrgGGGrgrrgrrr"/>
<phase duration="2" state="grrrgGGGrgrrgGGr"/> <phase duration="2" state="grrrgGGGrgrrgGGr"/>
<phase duration="9" state="grrrgGGGrgrrgGGr"/>
<phase duration="4" state="grrrgyyyrgrrgGGr"/>
<phase duration="10" state="grrrgGGGrgrrgGGr"/>
<phase duration="3" state="grrrgyyyrgrrgGGr"/>
<phase duration="2" state="grrrgrrrrgrrgGGr"/> <phase duration="2" state="grrrgrrrrgrrgGGr"/>
<phase duration="37" state="grrrgrrrrgrrgGGG"/>
<phase duration="4" state="grrrgrrrrgrrgyyy"/>
<phase duration="38" state="grrrgrrrrgrrgGGG"/>
<phase duration="3" state="grrrgrrrrgrrgyyy"/>
<phase duration="2" state="grrrgrrrrgrrgrrr"/> <phase duration="2" state="grrrgrrrrgrrgrrr"/>
<phase duration="64" state="gGGGgrrrrgrrgrrr"/>
<phase duration="65" state="gGGGgrrrrgrrgrrr"/>
</tlLogic> </tlLogic>
<tlLogic id="i7" type="static" programID="i7_prog" offset="-90">
<tlLogic id="i7" type="static" programID="i7_prog" offset="-119">
<phase duration="41" state="GGrggGG"/> <phase duration="41" state="GGrggGG"/>
<phase duration="4" state="yyrggyy"/> <phase duration="4" state="yyrggyy"/>
<phase duration="1" state="rrrggrr"/> <phase duration="1" state="rrrggrr"/>
@ -310,125 +310,125 @@
<phase duration="1" state="rrrggrr"/> <phase duration="1" state="rrrggrr"/>
<phase duration="21" state="GGrggGG"/> <phase duration="21" state="GGrggGG"/>
</tlLogic> </tlLogic>
<tlLogic id="i8" type="static" programID="i8_prog" offset="-150">
<phase duration="30" state="grrrrrrrgGGGgrrr"/>
<phase duration="3" state="grrrrrrrgyyygrrr"/>
<tlLogic id="i8" type="static" programID="i8_prog" offset="-31">
<phase duration="29" state="grrrrrrrgGGGgrrr"/>
<phase duration="4" state="grrrrrrrgyyygrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="31" state="grrrrrrrgrrrgGGG"/>
<phase duration="3" state="grrrrrrrgrrrgGGy"/>
<phase duration="30" state="grrrrrrrgrrrgGGG"/>
<phase duration="4" state="grrrrrrrgrrrgGGy"/>
<phase duration="2" state="grrrrrrrgrrrgGGr"/> <phase duration="2" state="grrrrrrrgrrrgGGr"/>
<phase duration="20" state="grrrGGGrgrrrgGGr"/>
<phase duration="3" state="grrrGGGrgrrrgyyr"/>
<phase duration="19" state="grrrGGGrgrrrgGGr"/>
<phase duration="4" state="grrrGGGrgrrrgyyr"/>
<phase duration="2" state="grrrGGGrgrrrgrrr"/> <phase duration="2" state="grrrGGGrgrrrgrrr"/>
<phase duration="53" state="grrrGGGGgrrrgrrr"/>
<phase duration="3" state="grrryyyygrrrgrrr"/>
<phase duration="52" state="grrrGGGGgrrrgrrr"/>
<phase duration="4" state="grrryyyygrrrgrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="13" state="gGGGrrrrgrrrgrrr"/>
<phase duration="3" state="gyyyrrrrgrrrgrrr"/>
<phase duration="12" state="gGGGrrrrgrrrgrrr"/>
<phase duration="4" state="gyyyrrrrgrrrgrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="28" state="grrrrrrrgGGGgrrr"/>
<phase duration="3" state="grrrrrrrgyyygrrr"/>
<phase duration="27" state="grrrrrrrgGGGgrrr"/>
<phase duration="4" state="grrrrrrrgyyygrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="31" state="grrrrrrrgrrrgGGG"/>
<phase duration="3" state="grrrrrrrgrrrgGGy"/>
<phase duration="30" state="grrrrrrrgrrrgGGG"/>
<phase duration="4" state="grrrrrrrgrrrgGGy"/>
<phase duration="2" state="grrrrrrrgrrrgGGr"/> <phase duration="2" state="grrrrrrrgrrrgGGr"/>
<phase duration="20" state="grrrGGGrgrrrgGGr"/>
<phase duration="3" state="grrrGGGrgrrrgyyr"/>
<phase duration="19" state="grrrGGGrgrrrgGGr"/>
<phase duration="4" state="grrrGGGrgrrrgyyr"/>
<phase duration="2" state="grrrGGGrgrrrgrrr"/> <phase duration="2" state="grrrGGGrgrrrgrrr"/>
<phase duration="53" state="grrrGGGGgrrrgrrr"/>
<phase duration="3" state="grrryyyygrrrgrrr"/>
<phase duration="52" state="grrrGGGGgrrrgrrr"/>
<phase duration="4" state="grrryyyygrrrgrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="13" state="gGGGrrrrgrrrgrrr"/>
<phase duration="3" state="gyyyrrrrgrrrgrrr"/>
<phase duration="12" state="gGGGrrrrgrrrgrrr"/>
<phase duration="4" state="gyyyrrrrgrrrgrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="28" state="grrrrrrrgGGGgrrr"/>
<phase duration="3" state="grrrrrrrgyyygrrr"/>
<phase duration="27" state="grrrrrrrgGGGgrrr"/>
<phase duration="4" state="grrrrrrrgyyygrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="31" state="grrrrrrrgrrrgGGG"/>
<phase duration="3" state="grrrrrrrgrrrgGGy"/>
<phase duration="30" state="grrrrrrrgrrrgGGG"/>
<phase duration="4" state="grrrrrrrgrrrgGGy"/>
<phase duration="2" state="grrrrrrrgrrrgGGr"/> <phase duration="2" state="grrrrrrrgrrrgGGr"/>
<phase duration="20" state="grrrGGGrgrrrgGGr"/>
<phase duration="3" state="grrrGGGrgrrrgyyr"/>
<phase duration="19" state="grrrGGGrgrrrgGGr"/>
<phase duration="4" state="grrrGGGrgrrrgyyr"/>
<phase duration="2" state="grrrGGGrgrrrgrrr"/> <phase duration="2" state="grrrGGGrgrrrgrrr"/>
<phase duration="53" state="grrrGGGGgrrrgrrr"/>
<phase duration="3" state="grrryyyygrrrgrrr"/>
<phase duration="52" state="grrrGGGGgrrrgrrr"/>
<phase duration="4" state="grrryyyygrrrgrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="13" state="gGGGrrrrgrrrgrrr"/>
<phase duration="3" state="gyyyrrrrgrrrgrrr"/>
<phase duration="12" state="gGGGrrrrgrrrgrrr"/>
<phase duration="4" state="gyyyrrrrgrrrgrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="28" state="grrrrrrrgGGGgrrr"/>
<phase duration="3" state="grrrrrrrgyyygrrr"/>
<phase duration="27" state="grrrrrrrgGGGgrrr"/>
<phase duration="4" state="grrrrrrrgyyygrrr"/>
<phase duration="2" state="grrrrrrrgrrrgrrr"/> <phase duration="2" state="grrrrrrrgrrrgrrr"/>
<phase duration="31" state="grrrrrrrgrrrgGGG"/>
<phase duration="3" state="grrrrrrrgrrrgGGy"/>
<phase duration="30" state="grrrrrrrgrrrgGGG"/>
<phase duration="4" state="grrrrrrrgrrrgGGy"/>
<phase duration="2" state="grrrrrrrgrrrgGGr"/> <phase duration="2" state="grrrrrrrgrrrgGGr"/>
<phase duration="20" state="grrrGGGrgrrrgGGr"/>
<phase duration="3" state="grrrGGGrgrrrgyyr"/>
<phase duration="19" state="grrrGGGrgrrrgGGr"/>
<phase duration="4" state="grrrGGGrgrrrgyyr"/>
<phase duration="2" state="grrrGGGrgrrrgrrr"/> <phase duration="2" state="grrrGGGrgrrrgrrr"/>
<phase duration="53" state="grrrGGGGgrrrgrrr"/>
<phase duration="52" state="grrrGGGGgrrrgrrr"/>
</tlLogic> </tlLogic>
<tlLogic id="i9" type="static" programID="i9_prog" offset="-50">
<phase duration="42" state="GGGG"/>
<phase duration="4" state="yyyy"/>
<tlLogic id="i9" type="static" programID="i9_prog" offset="-119">
<phase duration="43" state="GGGG"/>
<phase duration="3" state="yyyy"/>
<phase duration="1" state="rrrr"/> <phase duration="1" state="rrrr"/>
<phase duration="109" state="rrrr"/>
<phase duration="4" state="rrrr"/>
<phase duration="110" state="rrrr"/>
<phase duration="3" state="rrrr"/>
<phase duration="1" state="rrrr"/> <phase duration="1" state="rrrr"/>
<phase duration="41" state="GGGG"/>
<phase duration="4" state="yyyy"/>
<phase duration="42" state="GGGG"/>
<phase duration="3" state="yyyy"/>
<phase duration="1" state="rrrr"/> <phase duration="1" state="rrrr"/>
<phase duration="109" state="rrrr"/>
<phase duration="4" state="rrrr"/>
<phase duration="110" state="rrrr"/>
<phase duration="3" state="rrrr"/>
<phase duration="1" state="rrrr"/> <phase duration="1" state="rrrr"/>
<phase duration="41" state="GGGG"/>
<phase duration="4" state="yyyy"/>
<phase duration="42" state="GGGG"/>
<phase duration="3" state="yyyy"/>
<phase duration="1" state="rrrr"/> <phase duration="1" state="rrrr"/>
<phase duration="109" state="rrrr"/>
<phase duration="4" state="rrrr"/>
<phase duration="110" state="rrrr"/>
<phase duration="3" state="rrrr"/>
<phase duration="1" state="rrrr"/> <phase duration="1" state="rrrr"/>
<phase duration="41" state="GGGG"/>
<phase duration="42" state="GGGG"/>
</tlLogic> </tlLogic>
<tlLogic id="u00" type="static" programID="u00_prog" offset="-100">
<phase duration="39" state="ggggrgggg"/>
<phase duration="4" state="ggggrgggg"/>
<tlLogic id="u00" type="static" programID="u00_prog" offset="-161">
<phase duration="38" state="ggggrgggg"/>
<phase duration="5" state="ggggrgggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="40" state="ggggGgggg"/>
<phase duration="4" state="ggggygggg"/>
<phase duration="39" state="ggggGgggg"/>
<phase duration="5" state="ggggygggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="28" state="ggggrgggg"/>
<phase duration="4" state="ggggrgggg"/>
<phase duration="27" state="ggggrgggg"/>
<phase duration="5" state="ggggrgggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="17" state="ggggrgggg"/>
<phase duration="4" state="ggggrgggg"/>
<phase duration="16" state="ggggrgggg"/>
<phase duration="5" state="ggggrgggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="32" state="ggggrgggg"/>
<phase duration="4" state="ggggrgggg"/>
<phase duration="31" state="ggggrgggg"/>
<phase duration="5" state="ggggrgggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="38" state="ggggrgggg"/>
<phase duration="4" state="ggggrgggg"/>
<phase duration="37" state="ggggrgggg"/>
<phase duration="5" state="ggggrgggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="40" state="ggggGgggg"/>
<phase duration="4" state="ggggygggg"/>
<phase duration="39" state="ggggGgggg"/>
<phase duration="5" state="ggggygggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="28" state="ggggrgggg"/>
<phase duration="4" state="ggggrgggg"/>
<phase duration="27" state="ggggrgggg"/>
<phase duration="5" state="ggggrgggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="17" state="ggggrgggg"/>
<phase duration="4" state="ggggrgggg"/>
<phase duration="16" state="ggggrgggg"/>
<phase duration="5" state="ggggrgggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="32" state="ggggrgggg"/>
<phase duration="4" state="ggggrgggg"/>
<phase duration="31" state="ggggrgggg"/>
<phase duration="5" state="ggggrgggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="38" state="ggggrgggg"/>
<phase duration="4" state="ggggrgggg"/>
<phase duration="37" state="ggggrgggg"/>
<phase duration="5" state="ggggrgggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="40" state="ggggGgggg"/>
<phase duration="4" state="ggggygggg"/>
<phase duration="39" state="ggggGgggg"/>
<phase duration="5" state="ggggygggg"/>
<phase duration="1" state="ggggrgggg"/> <phase duration="1" state="ggggrgggg"/>
<phase duration="28" state="ggggrgggg"/>
<phase duration="27" state="ggggrgggg"/>
<phase duration="22" state="ggggrgggg"/> <phase duration="22" state="ggggrgggg"/>
</tlLogic> </tlLogic>
<tlLogic id="u20" type="static" programID="u20_prog" offset="-10">
<tlLogic id="u20" type="static" programID="u20_prog" offset="-169">
<phase duration="39" state="ggrggg"/> <phase duration="39" state="ggrggg"/>
<phase duration="4" state="ggrggg"/> <phase duration="4" state="ggrggg"/>
<phase duration="1" state="ggrggg"/> <phase duration="1" state="ggrggg"/>
@ -473,197 +473,197 @@
<phase duration="1" state="ggrggg"/> <phase duration="1" state="ggrggg"/>
<phase duration="65" state="ggrggg"/> <phase duration="65" state="ggrggg"/>
</tlLogic> </tlLogic>
<tlLogic id="u30" type="static" programID="u30_prog" offset="-21">
<tlLogic id="u30" type="static" programID="u30_prog" offset="-80">
<phase duration="34" state="ggggrggg"/> <phase duration="34" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="33" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="34" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="37" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="38" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="16" state="ggggGggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="17" state="ggggGggg"/>
<phase duration="4" state="ggggyggg"/> <phase duration="4" state="ggggyggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="32" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="33" state="ggggrggg"/> <phase duration="33" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="37" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="34" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="16" state="ggggGggg"/>
<phase duration="4" state="ggggyggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="32" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="38" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="17" state="ggggGggg"/>
<phase duration="4" state="ggggyggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="33" state="ggggrggg"/> <phase duration="33" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="37" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="34" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="16" state="ggggGggg"/>
<phase duration="4" state="ggggyggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="32" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="38" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="17" state="ggggGggg"/>
<phase duration="4" state="ggggyggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="33" state="ggggrggg"/> <phase duration="33" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="37" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="34" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="38" state="ggggrggg"/>
</tlLogic> </tlLogic>
<tlLogic id="u31" type="static" programID="u31_prog" offset="-21">
<tlLogic id="u31" type="static" programID="u31_prog" offset="-80">
<phase duration="34" state="ggggGggg"/> <phase duration="34" state="ggggGggg"/>
<phase duration="4" state="ggggyggg"/> <phase duration="4" state="ggggyggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="33" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="34" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="37" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="38" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="16" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="17" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="32" state="ggggGggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="33" state="ggggGggg"/>
<phase duration="4" state="ggggyggg"/> <phase duration="4" state="ggggyggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="33" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="34" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="37" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="38" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="16" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="17" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="32" state="ggggGggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="33" state="ggggGggg"/>
<phase duration="4" state="ggggyggg"/> <phase duration="4" state="ggggyggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="33" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="34" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="37" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="38" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="16" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="17" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="32" state="ggggGggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="33" state="ggggGggg"/>
<phase duration="4" state="ggggyggg"/> <phase duration="4" state="ggggyggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="33" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="34" state="ggggrggg"/>
<phase duration="4" state="ggggrggg"/> <phase duration="4" state="ggggrggg"/>
<phase duration="2" state="ggggrggg"/>
<phase duration="37" state="ggggrggg"/>
<phase duration="1" state="ggggrggg"/>
<phase duration="38" state="ggggrggg"/>
</tlLogic> </tlLogic>
<tlLogic id="u32" type="static" programID="u32_prog" offset="-21">
<tlLogic id="u32" type="static" programID="u32_prog" offset="-80">
<phase duration="34" state="gggggggG"/> <phase duration="34" state="gggggggG"/>
<phase duration="4" state="gggggggy"/> <phase duration="4" state="gggggggy"/>
<phase duration="2" state="gggggggr"/>
<phase duration="33" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="34" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="37" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="38" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="16" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="17" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="32" state="gggggggG"/>
<phase duration="1" state="gggggggr"/>
<phase duration="33" state="gggggggG"/>
<phase duration="4" state="gggggggy"/> <phase duration="4" state="gggggggy"/>
<phase duration="2" state="gggggggr"/>
<phase duration="33" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="34" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="37" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="38" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="16" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="17" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="32" state="gggggggG"/>
<phase duration="1" state="gggggggr"/>
<phase duration="33" state="gggggggG"/>
<phase duration="4" state="gggggggy"/> <phase duration="4" state="gggggggy"/>
<phase duration="2" state="gggggggr"/>
<phase duration="33" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="34" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="37" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="38" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="16" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="17" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="32" state="gggggggG"/>
<phase duration="1" state="gggggggr"/>
<phase duration="33" state="gggggggG"/>
<phase duration="4" state="gggggggy"/> <phase duration="4" state="gggggggy"/>
<phase duration="2" state="gggggggr"/>
<phase duration="33" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="34" state="gggggggr"/>
<phase duration="4" state="gggggggr"/> <phase duration="4" state="gggggggr"/>
<phase duration="2" state="gggggggr"/>
<phase duration="37" state="gggggggr"/>
<phase duration="1" state="gggggggr"/>
<phase duration="38" state="gggggggr"/>
</tlLogic> </tlLogic>
<tlLogic id="u60" type="static" programID="u60_prog" offset="-40">
<tlLogic id="u60" type="static" programID="u60_prog" offset="-140">
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="22" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="23" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="9" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="10" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="37" state="ggggggggG"/>
<phase duration="4" state="ggggggggy"/>
<phase duration="38" state="ggggggggG"/>
<phase duration="3" state="ggggggggy"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="64" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="65" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="18" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="19" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="22" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="23" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="9" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="10" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="37" state="ggggggggG"/>
<phase duration="4" state="ggggggggy"/>
<phase duration="38" state="ggggggggG"/>
<phase duration="3" state="ggggggggy"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="64" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="65" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="18" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="19" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="22" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="23" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="9" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="10" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="37" state="ggggggggG"/>
<phase duration="4" state="ggggggggy"/>
<phase duration="38" state="ggggggggG"/>
<phase duration="3" state="ggggggggy"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="64" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="65" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="18" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="19" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="22" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="23" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="9" state="ggggggggr"/>
<phase duration="4" state="ggggggggr"/>
<phase duration="10" state="ggggggggr"/>
<phase duration="3" state="ggggggggr"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="37" state="ggggggggG"/>
<phase duration="4" state="ggggggggy"/>
<phase duration="38" state="ggggggggG"/>
<phase duration="3" state="ggggggggy"/>
<phase duration="2" state="ggggggggr"/> <phase duration="2" state="ggggggggr"/>
<phase duration="64" state="ggggggggr"/>
<phase duration="65" state="ggggggggr"/>
</tlLogic> </tlLogic>
</additional> </additional>

+ 19
- 16
Scripts/preprocess_daily.py View File

@ -203,7 +203,7 @@ class DailyPreprocessor():
print('2-1. 매칭 테이블들을 생성했습니다.') print('2-1. 매칭 테이블들을 생성했습니다.')
# 2-1-1 # 2-1-1
def make_match1(self):
def make_match1(self,fetch_all:bool=False):
''' '''
DB에는 . 5 . DB에는 . 5 .
'../Data/tables/move/' 5 . '../Data/tables/move/' 5 .
@ -213,21 +213,24 @@ class DailyPreprocessor():
match1을 . match1을 .
''' '''
# [이동류번호] 불러오기 (약 1분의 소요시간)
path_move = os.path.join(self.path_tables, 'move')
csv_moves = os.listdir(path_move)
moves = [pd.read_csv(os.path.join(path_move, csv_move), index_col=0) for csv_move in tqdm(csv_moves, desc='이동류정보 불러오는 중')]
df = pd.concat(moves).reset_index(drop=True)
self.match1 = []
for i, group in df.groupby(['inter_no', 'phas_A', 'phas_B']):
inter_no, phas_A, phas_B = i
pairs_array = np.array(group[['move_A', 'move_B']])
unique_pairs, counts = np.unique(pairs_array, axis=0, return_counts=True)
frequent_pair = unique_pairs[np.argmax(counts)]
self.match1.append(pd.DataFrame({'inter_no':[inter_no], 'phas_A':[phas_A], 'phas_B':[phas_B],
'move_A':[frequent_pair[0]], 'move_B':[frequent_pair[1]]}))
self.match1 = pd.concat(self.match1).reset_index(drop=True)
self.match1.to_csv(os.path.join(self.path_intermediates, 'match1.csv'))
if fetch_all:
# [이동류번호] 불러오기 (약 1분의 소요시간)
path_move = os.path.join(self.path_tables, 'move')
csv_moves = os.listdir(path_move)
moves = [pd.read_csv(os.path.join(path_move, csv_move), index_col=0) for csv_move in tqdm(csv_moves, desc='이동류정보 불러오는 중')]
df = pd.concat(moves).reset_index(drop=True)
self.match1 = []
for i, group in df.groupby(['inter_no', 'phas_A', 'phas_B']):
inter_no, phas_A, phas_B = i
pairs_array = np.array(group[['move_A', 'move_B']])
unique_pairs, counts = np.unique(pairs_array, axis=0, return_counts=True)
frequent_pair = unique_pairs[np.argmax(counts)]
self.match1.append(pd.DataFrame({'inter_no':[inter_no], 'phas_A':[phas_A], 'phas_B':[phas_B],
'move_A':[frequent_pair[0]], 'move_B':[frequent_pair[1]]}))
self.match1 = pd.concat(self.match1).reset_index(drop=True)
self.match1.to_csv(os.path.join(self.path_intermediates, 'match1.csv'))
else:
self.match1 = pd.read_csv(os.path.join(self.path_intermediates, 'match1.csv'))
# 2-1-2 # 2-1-2
def make_match2(self): def make_match2(self):

Loading…
Cancel
Save