调试脚本

This commit is contained in:
workpc 2024-12-10 17:06:26 +08:00
parent 3f24f117d5
commit e747248afa
3 changed files with 1067 additions and 83 deletions

16
up_week_dates.csv Normal file
View File

@ -0,0 +1,16 @@
ds,ACCURACY,PREDICT_DATE,CREAT_DATE,HIGH_PRICE_y,LOW_PRICE_y,MIN_PRICE,MAX_PRICE,Ds_Week,Pre_Week
2024-12-02,0.0,2024-12-02,2024-11-29,72.89,71.52,81.17999,81.17999,48,48
2024-12-03,0.0,2024-12-03,2024-11-29,73.93,71.68,80.79155,80.79155,48,48
2024-12-04,0.0,2024-12-04,2024-11-29,74.28,72.25,80.650894,80.650894,48,48
2024-12-05,0.0,2024-12-05,2024-11-29,72.92,71.8,80.298,80.298,48,48
2024-12-06,0.0,2024-12-06,2024-11-29,72.19,70.85,75.50838,80.264275,48,48
2024-12-03,1.0,2024-12-03,2024-12-02,73.93,71.68,69.80779,75.83719,48,48
2024-12-04,1.0,2024-12-04,2024-12-02,74.28,72.25,71.281296,76.24051,48,48
2024-12-05,1.0,2024-12-05,2024-12-02,72.92,71.8,70.52623,75.95541,48,48
2024-12-06,1.0,2024-12-06,2024-12-02,72.19,70.85,70.71932,75.99768,48,48
2024-12-04,0.9432068965517233,2024-12-04,2024-12-03,74.28,72.25,72.36529,75.89061,48,48
2024-12-05,0.6439196428571465,2024-12-05,2024-12-03,72.92,71.8,72.19881,75.72962,48,48
2024-12-06,0.04017164179103775,2024-12-06,2024-12-03,72.19,70.85,72.13617,75.97762,48,48
2024-12-05,0.0,2024-12-05,2024-12-04,72.92,71.8,82.40537,82.40537,48,48
2024-12-06,0.0,2024-12-06,2024-12-04,72.19,70.85,82.0727,82.0727,48,48
2024-12-06,0.0,2024-12-06,2024-12-05,72.19,70.85,83.367485,83.367485,48,48
1 ds ACCURACY PREDICT_DATE CREAT_DATE HIGH_PRICE_y LOW_PRICE_y MIN_PRICE MAX_PRICE Ds_Week Pre_Week
2 2024-12-02 0.0 2024-12-02 2024-11-29 72.89 71.52 81.17999 81.17999 48 48
3 2024-12-03 0.0 2024-12-03 2024-11-29 73.93 71.68 80.79155 80.79155 48 48
4 2024-12-04 0.0 2024-12-04 2024-11-29 74.28 72.25 80.650894 80.650894 48 48
5 2024-12-05 0.0 2024-12-05 2024-11-29 72.92 71.8 80.298 80.298 48 48
6 2024-12-06 0.0 2024-12-06 2024-11-29 72.19 70.85 75.50838 80.264275 48 48
7 2024-12-03 1.0 2024-12-03 2024-12-02 73.93 71.68 69.80779 75.83719 48 48
8 2024-12-04 1.0 2024-12-04 2024-12-02 74.28 72.25 71.281296 76.24051 48 48
9 2024-12-05 1.0 2024-12-05 2024-12-02 72.92 71.8 70.52623 75.95541 48 48
10 2024-12-06 1.0 2024-12-06 2024-12-02 72.19 70.85 70.71932 75.99768 48 48
11 2024-12-04 0.9432068965517233 2024-12-04 2024-12-03 74.28 72.25 72.36529 75.89061 48 48
12 2024-12-05 0.6439196428571465 2024-12-05 2024-12-03 72.92 71.8 72.19881 75.72962 48 48
13 2024-12-06 0.04017164179103775 2024-12-06 2024-12-03 72.19 70.85 72.13617 75.97762 48 48
14 2024-12-05 0.0 2024-12-05 2024-12-04 72.92 71.8 82.40537 82.40537 48 48
15 2024-12-06 0.0 2024-12-06 2024-12-04 72.19 70.85 82.0727 82.0727 48 48
16 2024-12-06 0.0 2024-12-06 2024-12-05 72.19 70.85 83.367485 83.367485 48 48

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 1,
"id": "31c0e11d-c87a-4e95-92a0-d1d09625e255",
"metadata": {},
"outputs": [],
@ -15,7 +15,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 2,
"id": "83c81b9e",
"metadata": {},
"outputs": [
@ -25,7 +25,7 @@
"'http://192.168.100.53:8080/jingbo-dev/api/server/login'"
]
},
"execution_count": 9,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
@ -44,7 +44,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 3,
"id": "2b330ee3-c006-4ab1-8558-59c51ac8d86f",
"metadata": {},
"outputs": [
@ -59,7 +59,7 @@
" 'funcOperation': '获取token'}"
]
},
"execution_count": 10,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
@ -70,7 +70,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 4,
"id": "dcb6100a-ed2b-4077-a1a9-361c6cb565f9",
"metadata": {},
"outputs": [],
@ -87,7 +87,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 5,
"id": "22c0c7c4",
"metadata": {},
"outputs": [
@ -95,7 +95,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{'confirmFlg': False, 'data': {'accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM0MjU1NTYsImp0aSI6IjczNjVlNTZmNTZiYjQ5YjhhNjE3MzhiNDJhMWVmOTJjIn0.pUUzeBqbcHv2B3Z2ZQ6pDdBscWeVGlai3LvVU-Hm03E', 'md5Token': 'f288634c14d5e93fc9c0b7a423a8ba33'}, 'status': True}\n"
"{'confirmFlg': False, 'data': {'accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3NjQxODAsImp0aSI6IjEzYWRlMTljYzg2OTQ4ODk4YjFiY2FkNTVmODEyZDI3In0.hx0thhOdqnjhFDWkJF0ZdCAK9qwAv5HB15gO7o5mXbY', 'md5Token': '22e1a4c6206d348848cb2fac1ed67312'}, 'status': True}\n"
]
}
],
@ -105,7 +105,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 6,
"id": "12077ead",
"metadata": {},
"outputs": [],
@ -115,7 +115,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 10,
"id": "a7ae21d1",
"metadata": {},
"outputs": [
@ -127,17 +127,17 @@
"INFO:my_logger:上传预警信息\n",
"预警上传中...\n",
"INFO:my_logger:预警上传中...\n",
"token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM0MjU1NTYsImp0aSI6Ijk2ZjJlNDg4NDgzMzQyYThhYmMyYzVhYjg2NGNhNDhhIn0.Vl6wmKDRxPdZANwEEWAQ4wBPbJKC2YWVi0Gm51ZzjE0\n",
"INFO:my_logger:token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM0MjU1NTYsImp0aSI6Ijk2ZjJlNDg4NDgzMzQyYThhYmMyYzVhYjg2NGNhNDhhIn0.Vl6wmKDRxPdZANwEEWAQ4wBPbJKC2YWVi0Gm51ZzjE0\n",
"warning_data:{'funcModule': '原油特征停更预警', 'funcOperation': '原油特征停更预警', 'data': {'WARNING_TYPE_NAME': '特征数据停更预警', 'WARNING_CONTENT': '2024-12-05有34个停更', 'WARNING_DATE': '2024-12-05'}}\n",
"INFO:my_logger:warning_data:{'funcModule': '原油特征停更预警', 'funcOperation': '原油特征停更预警', 'data': {'WARNING_TYPE_NAME': '特征数据停更预警', 'WARNING_CONTENT': '2024-12-05有34个停更', 'WARNING_DATE': '2024-12-05'}}\n"
"token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3Njg3NjMsImp0aSI6ImEzYTMwMGNmZjRkNzRiYjY5YTFhMWI0ODMzMjYzOWJmIn0.xPmT4E0ckxfNZbcBEsnTzU8zzxij8zvROBpXeTZMn_U\n",
"INFO:my_logger:token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3Njg3NjMsImp0aSI6ImEzYTMwMGNmZjRkNzRiYjY5YTFhMWI0ODMzMjYzOWJmIn0.xPmT4E0ckxfNZbcBEsnTzU8zzxij8zvROBpXeTZMn_U\n",
"warning_data:{'funcModule': '原油特征停更预警', 'funcOperation': '原油特征停更预警', 'data': {'WARNING_TYPE_NAME': '特征数据停更预警', 'WARNING_CONTENT': '2024-12-09有30个停更', 'WARNING_DATE': '2024-12-09'}}\n",
"INFO:my_logger:warning_data:{'funcModule': '原油特征停更预警', 'funcOperation': '原油特征停更预警', 'data': {'WARNING_TYPE_NAME': '特征数据停更预警', 'WARNING_CONTENT': '2024-12-09有30个停更', 'WARNING_DATE': '2024-12-09'}}\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'confirmFlg': False, 'data': {'accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM0MjU1NTYsImp0aSI6Ijk2ZjJlNDg4NDgzMzQyYThhYmMyYzVhYjg2NGNhNDhhIn0.Vl6wmKDRxPdZANwEEWAQ4wBPbJKC2YWVi0Gm51ZzjE0', 'md5Token': '99b49d2d29f44041f46ecd03a3987961'}, 'status': True}\n"
"{'confirmFlg': False, 'data': {'accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3Njg3NjMsImp0aSI6ImEzYTMwMGNmZjRkNzRiYjY5YTFhMWI0ODMzMjYzOWJmIn0.xPmT4E0ckxfNZbcBEsnTzU8zzxij8zvROBpXeTZMn_U', 'md5Token': '0d22e2eedf2857a4c5ef80a56b4b6569'}, 'status': True}\n"
]
},
{
@ -168,7 +168,7 @@
"logger.info(f'上传预警信息')\n",
"try:\n",
" warning_date = datetime.datetime.now().strftime('%Y-%m-%d')\n",
" content = f'{warning_date}有34个停更'\n",
" content = f'{warning_date}有30个停更'\n",
" warning_data['data']['WARNING_DATE'] = warning_date\n",
" warning_data['data']['WARNING_CONTENT'] = content\n",
" upload_warning_data(warning_data)\n",
@ -176,6 +176,14 @@
"except Exception as e:\n",
" logger.error(f'上传预警信息失败:{e}')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "54942e1a",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {