Skip to content
Snippets Groups Projects
Commit 3ca6d75e authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

upload function fixed!

parent 8be49ef5
Branches
No related tags found
No related merge requests found
......@@ -341,7 +341,7 @@ def upload_results(source_file,target_file,target_file_dir):
with (open(source_file,'r') as source,open(target_file,'a') as target):
target.write(source.read())
os.remove(source_file)
return
return source_file,target_file,target_file_dir
except:
information_box(f"{target_file} is no longer accessible. Please change directory")
target_file_dir = choose_folder()
......
......@@ -240,7 +240,7 @@ def on_set_button_clicked(b):
first_sampling = False
#upload results
upload_results(temp_file,file,folder)
temp_file,file,folder=upload_results(temp_file,file,folder)
#show messagebox
information_box("Measurement finished!")
......@@ -289,7 +289,7 @@ def on_reset_button_clicked(b):
first_sampling = False
#upload results
upload_results(temp_file,file,folder)
temp_file,file,folder=upload_results(temp_file,file,folder)
#show messagebox
information_box("Measurement finished!")
......@@ -417,7 +417,7 @@ def on_full_button_clicked(b):
print(indexes)
#upload results
upload_results(temp_file,file,folder)
temp_file,file,folder=upload_results(temp_file,file,folder)
change_state(buttons)
change_state(parameters)
......@@ -479,7 +479,7 @@ def on_retention_button_clicked(b):
write_to_file(temp_file,title,df)
#upload results
upload_results(temp_file,file,folder)
temp_file,file,folder=upload_results(temp_file,file,folder)
#show messagebox
information_box("Measurement finished!")
......
......@@ -9,7 +9,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e025aa0ce57c458180cb1d2ec8bf4df5",
"model_id": "a15bbb4631594bdb8f380bffdde1549e",
"version_major": 2,
"version_minor": 0
},
......@@ -30,7 +30,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a573226e123d4cbd9472946f8e5b022a",
"model_id": "ab2cf0130c54466da63f2540115e045c",
"version_major": 2,
"version_minor": 0
},
......@@ -51,7 +51,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "5b2a83fe18da4c8e9219afb439c157ac",
"model_id": "812a22ed82f642aba7b01a3c17476f7b",
"version_major": 2,
"version_minor": 0
},
......@@ -65,7 +65,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "5f28698787d54352a22d2e8f7a27a288",
"model_id": "5296d6d0ac4f45f28e67d93e6a1af5d8",
"version_major": 2,
"version_minor": 0
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment