신호생성 repo (24. 1. 5 ~).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

123 lines
3.0 KiB

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"import os, sys, copy, argparse\n",
"import json\n",
"import sumolib, traci\n",
"from tqdm import tqdm\n",
"from datetime import datetime\n",
"path_root = os.path.dirname(os.path.dirname(os.path.abspath('.')))\n",
"path_scr = os.path.join(path_root, 'scripts')\n",
"sys.path.append(path_scr)\n",
"from preprocess_daily import DailyPreprocessor\n",
"from generate_signals import SignalGenerator"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1. 데이터를 로드합니다.\n",
"1-1. 네트워크가 로드되었습니다.\n",
"1-2. 테이블들이 로드되었습니다.\n"
]
}
],
"source": [
"self = DailyPreprocessor(config_name='test_0721')\n",
"self.main()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1. 데이터를 준비합니다.\n",
"1-1. 네트워크가 로드되었습니다.\n",
"1-2. 테이블들이 로드되었습니다.\n",
"1-5. 필요한 보조 객체들이 모두 준비되었습니다.\n",
"2. 신호이력 테이블을 변환합니다.\n",
"3. 이동류정보 테이블을 변환합니다.\n",
"4. 통합 테이블을 생성합니다.\n",
"5. 신호를 생성합니다.\n",
"6. 이슈사항을 저장합니다.\n",
"(1) 0:00:02.387306\n",
"(1-1) 0:00:02.369515\n",
"(1-2) 0:00:00.017791\n",
"(1-3) 0:00:00\n",
"(1-4) 0:00:00\n",
"(1-5) 0:00:00\n",
"(2) 0:00:00.068532\n",
"(2-1) 0:00:00.016935\n",
"(2-2) 0:00:00.046335\n",
"(2-3) 0:00:00.005262\n",
"(3) 0:00:00.281699\n",
"(3-1) 0:00:00.281699\n",
"(3-2) 0:00:00\n",
"(4) 0:00:00.049304\n",
"(4-1) 0:00:00\n",
"(4-2) 0:00:00.014641\n",
"(4-2) 0:00:00.034663\n",
"(5) 0:00:00.116021\n",
"(5-1) 0:00:00.015803\n",
"(5-2) 0:00:00.097895\n",
"(5-3) 0:00:00.002209\n",
"(6) 0:00:00.000030\n",
"total time : 0:00:02.902892\n"
]
}
],
"source": [
"self = SignalGenerator(config_name='test_0721', month=7, day=22, hour=9, minute=25)\n",
"self.main()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"self.plan"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "siggen",
"language": "python",
"name": "python3"
},
"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
}