Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
labcode
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CST
labcode
Commits
3ca6d75e
Commit
3ca6d75e
authored
1 year ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
upload function fixed!
parent
8be49ef5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
hp4155/memristor/help.py
+1
-1
1 addition, 1 deletion
hp4155/memristor/help.py
hp4155/memristor/memristor.py
+4
-4
4 additions, 4 deletions
hp4155/memristor/memristor.py
hp4155/memristor/memristor_buttons.ipynb
+4
-4
4 additions, 4 deletions
hp4155/memristor/memristor_buttons.ipynb
with
9 additions
and
9 deletions
hp4155/memristor/help.py
+
1
−
1
View file @
3ca6d75e
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
hp4155/memristor/memristor.py
+
4
−
4
View file @
3ca6d75e
...
...
@@ -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!
"
)
...
...
This diff is collapsed.
Click to expand it.
hp4155/memristor/memristor_buttons.ipynb
+
4
−
4
View file @
3ca6d75e
...
...
@@ -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": "a
573226e123d4cbd9472946f8e5b022a
",
"model_id": "a
b2cf0130c54466da63f2540115e045c
",
"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": "5
f28698787d54352a22d2e8f7a27a28
8",
"model_id": "5
296d6d0ac4f45f28e67d93e6a1af5d
8",
"version_major": 2,
"version_minor": 0
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment