save conf
This commit is contained in:
Binary file not shown.
@@ -69,9 +69,13 @@ def init_image_processing_yes_no():
|
||||
def safe_meas_settings(save_path):
|
||||
data = myu.load_object(config_path)
|
||||
save_path = os.path.join(save_path, f'conf_{get_datestr()}.json')
|
||||
with open(save_path,"w") as f:
|
||||
json.dump(data,f)
|
||||
f.close()
|
||||
try:
|
||||
with open(save_path,"w") as f:
|
||||
json.dump(data,f)
|
||||
f.close()
|
||||
except FileNotFoundError as e:
|
||||
print(f"dir: {save_path}")
|
||||
print(f"Error: {e}")
|
||||
|
||||
def gaussian_2d(coords, amplitude, x0, y0, sigma_x, sigma_y, offset):
|
||||
x, y = coords
|
||||
|
||||
@@ -89,8 +89,8 @@
|
||||
"source_hidden": true
|
||||
},
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-07-18T06:31:46.182377Z",
|
||||
"start_time": "2025-07-18T06:31:46.155105Z"
|
||||
"end_time": "2025-07-18T06:36:03.714987Z",
|
||||
"start_time": "2025-07-18T06:36:03.471804Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -305,7 +305,17 @@
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Path exists: C:\\Users\\berti_r\\Python_Projects\\StagePerformaceDocu\\Scripts\n",
|
||||
"Path exists: C:\\Users\\berti_r\\Python_Projects\\StagePerformaceDocu\\Config\\config.json\n"
|
||||
"Path exists: C:\\Users\\berti_r\\Python_Projects\\StagePerformaceDocu\\Config\\config.json\n",
|
||||
"Path exists: C:\\Users\\berti_r\\Python_Projects\\StagePerformaceDocu\\Config\\config.json\n",
|
||||
"Path exists: C:\\Users\\berti_r\\Python_Projects\\templates\\motion_libs\n",
|
||||
"Path exists: C:\\Users\\berti_r\\Python_Projects\\StagePerformaceDocu\\Config\\measurement.json\n",
|
||||
"Constructor for PLC\n",
|
||||
"Connect to PLC\n",
|
||||
"is_open()=True\n",
|
||||
"get_local_address()=None\n",
|
||||
"read_device_info()=('Plc30 App', <pyads.structs.AdsVersion object at 0x00000178ED9C5400>)\n",
|
||||
"GVL_APP.nAXIS_NUM=3\n",
|
||||
"Constructor for axis\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -316,7 +326,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "ed5deb4dbf5840538096137f0501b242"
|
||||
"model_id": "c31481f1947a4b30b3ff53e84593b30e"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -330,7 +340,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "79a34a1af74b4df38079ba5829c3aa04"
|
||||
"model_id": "d6399c79bda24d639a113b5691573f92"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -344,7 +354,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "5b846778f0a94a8191a75d56a09bed9a"
|
||||
"model_id": "8da5fa9f0e384d19a5e8b037b09bf5e1"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -358,7 +368,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "47d97d519c814c1f8603097647245cd2"
|
||||
"model_id": "61f4038ae5374043b19149f80b26e06d"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -372,7 +382,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "36fe7129f21346beb0a6c43555763688"
|
||||
"model_id": "bf7fd0d029074ccfb14b263fce0d0090"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -386,7 +396,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "0afe87a96be047bfaac83e1082f019f5"
|
||||
"model_id": "90cb7e3610cb4ef487f417b23da8bba7"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -400,7 +410,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "7df1b8444d534136ab673b1f6220d8c4"
|
||||
"model_id": "02693e2e6e9c4c85a90db5fc4e5e0d59"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -414,7 +424,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "a4721defbf6b4d11892a4f748922d303"
|
||||
"model_id": "ea88684c4b45464c88b186bd1594ddda"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -428,7 +438,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "1ca8d2b35d4d4128acf399bca6f02ddd"
|
||||
"model_id": "9570052006f24d35b37139f0c7351975"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -442,7 +452,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "b2577a40b78e49c0a1f7d497f1902708"
|
||||
"model_id": "7965df82e98f4558a752c87ddfab1dd8"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -456,7 +466,7 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "ffe882fe37fd482184a9035ec181b978"
|
||||
"model_id": "5a0f38e0beee4e30b3117223dcdd799b"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
@@ -470,14 +480,14 @@
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"version_major": 2,
|
||||
"version_minor": 0,
|
||||
"model_id": "0b8b77dfda124ff3b04948b55f0d3163"
|
||||
"model_id": "28787c1555904ad997cd2748ff2a6d1e"
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
}
|
||||
],
|
||||
"execution_count": 2
|
||||
"execution_count": 1
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
||||
Reference in New Issue
Block a user