Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Experimental Physics
Quantum Circuits
python-repo
Commits
5e51e5f6
Commit
5e51e5f6
authored
Sep 10, 2021
by
Christian Schneider
Browse files
Bugfix for device monitor for newer PySQL packages.
parent
fd781aca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Instruments/__init__.py
Instruments/__init__.py
+2
-1
Monitor/main.py
Monitor/main.py
+1
-1
No files found.
Instruments/__init__.py
View file @
5e51e5f6
...
...
@@ -22,7 +22,8 @@ try:
from
Monitor.main
import
Instruments
print
(
'
\n
Hi {user}. You find your Instrument Monitor at:
\n
{url}'
.
format
(
user
=
getpass
.
getuser
(),
url
=
'https://kirchmair.iqoqi.at/lab/devices/{}'
.
format
(
getpass
.
getuser
())))
url
=
'https://kirchmair.iqoqi.at/lab/dashboard/devices/{'
+
'}'
.
format
(
getpass
.
getuser
())))
except
:
print
(
'
\n
Hi {user}. No connection to database. You use the library now '
...
...
Monitor/main.py
View file @
5e51e5f6
...
...
@@ -92,7 +92,7 @@ class Instruments(db.Model):
name
=
db
.
Column
(
'name'
,
db
.
String
(
100
))
# Device name from IPList
varname
=
db
.
Column
(
'varname'
,
db
.
String
(
100
))
# Device variable name
parameters
=
db
.
Column
(
'parameters'
,
db
.
JSON
)
# Device specific pars
pckle
=
db
.
Column
(
'pckle'
,
db
.
Binary
)
# Pickle dump of object
pckle
=
db
.
Column
(
'pckle'
,
db
.
Large
Binary
)
# Pickle dump of object
user
=
db
.
Column
(
'user'
,
db
.
String
(
80
))
# User of the device
idn
=
db
.
Column
(
'identity'
,
db
.
String
(
80
))
# Identity of the device
channel
=
db
.
Column
(
'channel'
,
db
.
Integer
)
# Channel
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment