This commit is contained in:
512song committed 2024-10-08 19:30:26 +08:00
1 parent e0bfb443be
commit 47bc01514d
2 files changed
+324 -85

No files matched your search

+35 -35
View File
@@ -431,15 +431,15 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 7,
"id": "3e614f4a-a623-48e2-97f8-b31f62c9a983",
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-23T09:01:55.163463Z",
"iopub.status.busy": "2024-09-23T09:01:55.162587Z",
"iopub.status.idle": "2024-09-23T09:01:55.182154Z",
"shell.execute_reply": "2024-09-23T09:01:55.181668Z",
"shell.execute_reply.started": "2024-09-23T09:01:55.163386Z"
"iopub.execute_input": "2024-10-08T11:25:00.162666Z",
"iopub.status.busy": "2024-10-08T11:25:00.161915Z",
"iopub.status.idle": "2024-10-08T11:25:00.180116Z",
"shell.execute_reply": "2024-10-08T11:25:00.179490Z",
"shell.execute_reply.started": "2024-10-08T11:25:00.162592Z"
},
"tags": []
},
@@ -448,8 +448,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"31\n",
"31\n"
"76\n",
"76\n"
]
}
],
@@ -482,11 +482,11 @@
"re_ta = {}\n",
"dict1 = {}\n",
"list1 = []\n",
"filename = 'data/天宫院社区240922.json'\n",
"filename = 'data/东营工程设计院2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20240923.csv'\n",
"filename = 'data/places_result_20240926.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -527,7 +527,7 @@
" score = int(result[4])/item[m_item]['divisor'] \n",
" re_ta[user][item_name]['成绩'] = f'{score} {item[m_item][\"unit\"]}'\n",
"print(len(re_ta))\n",
"filename = 'data/result_天宫院社区240922.json'\n",
"filename = 'data/result_东营工程设计院2024.json'\n",
"\n",
"with open(filename,'w') as fl:\n",
" json.dump(re_ta, fl, ensure_ascii=False) \n",
@@ -544,15 +544,15 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 8,
"id": "141b30dc-5975-4dcb-9bc3-9b20d26a0917",
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-23T09:02:38.046594Z",
"iopub.status.busy": "2024-09-23T09:02:38.045904Z",
"iopub.status.idle": "2024-09-23T09:02:38.070709Z",
"shell.execute_reply": "2024-09-23T09:02:38.070026Z",
"shell.execute_reply.started": "2024-09-23T09:02:38.046526Z"
"iopub.execute_input": "2024-10-08T11:25:10.348657Z",
"iopub.status.busy": "2024-10-08T11:25:10.348028Z",
"iopub.status.idle": "2024-10-08T11:25:10.367430Z",
"shell.execute_reply": "2024-10-08T11:25:10.366876Z",
"shell.execute_reply.started": "2024-10-08T11:25:10.348595Z"
},
"tags": []
},
@@ -662,7 +662,7 @@
"\n",
"#list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','height','weight']\n",
"list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp']\n",
"filename = 'data/result_天宫院社区240922.json'\n",
"filename = 'data/result_东营工程设计院2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict2 = json.load(fl) \n",
"for k, v in dict2.items():\n",
@@ -683,7 +683,7 @@
" dict2[k][item_en]['score'] = cal_score(data1)\n",
" #print(k,v[item_en]['成绩'],cal_score(data1))\n",
"\n",
"filename = f'data/result_天宫院社区240922.json'\n",
"filename = f'data/result_东营工程设计院2024.json'\n",
"with open(filename,'w') as fl:\n",
" json.dump(dict2,fl , ensure_ascii=False) \n",
"print('ok!') "
@@ -691,15 +691,15 @@
},
{
"cell_type": "code",
"execution_count": 101,
"execution_count": 9,
"id": "30c4c256-a75d-40dd-b9cf-e3102fd4ab5a",
"metadata": {
"execution": {
"iopub.execute_input": "2024-03-15T11:30:51.926110Z",
"iopub.status.busy": "2024-03-15T11:30:51.925642Z",
"iopub.status.idle": "2024-03-15T11:30:51.956746Z",
"shell.execute_reply": "2024-03-15T11:30:51.955818Z",
"shell.execute_reply.started": "2024-03-15T11:30:51.926073Z"
"iopub.execute_input": "2024-10-08T11:25:33.793524Z",
"iopub.status.busy": "2024-10-08T11:25:33.792822Z",
"iopub.status.idle": "2024-10-08T11:25:33.811389Z",
"shell.execute_reply": "2024-10-08T11:25:33.810061Z",
"shell.execute_reply.started": "2024-10-08T11:25:33.793457Z"
},
"tags": []
},
@@ -846,15 +846,15 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 10,
"id": "b123ee6b-85d2-4660-b226-321832a6b796",
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-23T09:03:50.560872Z",
"iopub.status.busy": "2024-09-23T09:03:50.560147Z",
"iopub.status.idle": "2024-09-23T09:04:05.194187Z",
"shell.execute_reply": "2024-09-23T09:04:05.193055Z",
"shell.execute_reply.started": "2024-09-23T09:03:50.560801Z"
"iopub.execute_input": "2024-10-08T11:25:43.507759Z",
"iopub.status.busy": "2024-10-08T11:25:43.506935Z",
"iopub.status.idle": "2024-10-08T11:26:24.811404Z",
"shell.execute_reply": "2024-10-08T11:26:24.810202Z",
"shell.execute_reply.started": "2024-10-08T11:25:43.507684Z"
},
"tags": []
},
@@ -863,7 +863,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"31\n"
"76\n"
]
}
],
@@ -876,11 +876,11 @@
"headers = {\n",
" \"Content-Type\": \"application/json; charset=UTF-8\"\n",
" }\n",
"filename = 'data/result_天宫院社区240922.json'\n",
"filename = 'data/result_东营工程设计院2024_all.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"list1 = []\n",
"file_path ='./天宫院240922/'\n",
"file_path ='./东营石油设计院2024/'\n",
"list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','bmi']\n",
"i=0\n",
"list2 = []\n",
@@ -890,7 +890,7 @@
" \n",
" id = str(k).rjust(4,\"0\")\n",
" mydata['path'] = file_path+id+'-'+ v['name']+'.pdf'\n",
" mydata['title'] = '天宫院社区'\n",
" mydata['title'] = '东营石油设计院'\n",
" mydata['subtitle'] = v['unit']\n",
" mydata['id'] = id\n",
" mydata['name'] = v['name']\n",