Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core_tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QuTech QDLabs
core_tools
Commits
65993668
Commit
65993668
authored
2 years ago
by
Sander Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Fixed VideoMode 2D scans for pyqtgraph 0.13+
Lowered GUI refresh rate to better support remote connections
parent
6e6051f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+7
-0
7 additions, 0 deletions
CHANGELOG.md
core_tools/GUI/keysight_videomaps/plotter/plotting_functions.py
+6
-4
6 additions, 4 deletions
...ools/GUI/keysight_videomaps/plotter/plotting_functions.py
examples/gui/liveplotting_demo.py
+3
-0
3 additions, 0 deletions
examples/gui/liveplotting_demo.py
with
16 additions
and
4 deletions
CHANGELOG.md
+
7
−
0
View file @
65993668
# Changelog
All notable changes to core_tools will be documented in this file.
## \[1.4.7] - 2022-11-@@@
-
Fixed import of NumpyJSONEncoder for new qcodes versions
-
Improved error handling during measurement
-
Fixed VideoMode 2D scans for pyqtgraph 0.13+
-
Lowered GUI refresh rate to better support remote connections
## \[1.4.6] - 2022-10-17
-
Improved logfile format
-
Requires numpy >= 1.20
...
...
This diff is collapsed.
Click to expand it.
core_tools/GUI/keysight_videomaps/plotter/plotting_functions.py
+
6
−
4
View file @
65993668
from
abc
import
ABCMeta
,
abstractmethod
from
dataclasses
import
dataclass
from
PyQt5.QtCore
import
QThread
from
PyQt5
import
QtWidgets
from
PyQt5
import
QtWidgets
,
QtGui
from
PyQt5
import
QtCore
import
pyqtgraph
as
pg
import
numpy
as
np
...
...
@@ -149,7 +149,7 @@ class live_plot(live_plot_abs, QThread):
self
.
plt_finished
=
False
self
.
timer
.
setSingleShot
(
False
)
# refresh rate of images in milliseconds
self
.
timer
.
start
(
20
)
self
.
timer
.
start
(
20
0
)
# start thread
super
().
start
()
...
...
@@ -297,8 +297,10 @@ class _2D_live_plot(live_plot):
range1
=
self
.
parameter_getter
.
setpoints
[
0
][
1
][
0
][
-
1
]
range0
=
self
.
parameter_getter
.
setpoints
[
0
][
0
][
-
1
]
img
.
translate
(
-
range1
,
-
range0
)
img
.
scale
(
1
/
self
.
shape
[
0
]
*
range1
*
2
,
1
/
self
.
shape
[
1
]
*
range0
*
2
)
tr
=
QtGui
.
QTransform
()
tr
.
translate
(
-
range1
,
-
range0
)
tr
.
scale
(
1
/
self
.
shape
[
0
]
*
range1
*
2
,
1
/
self
.
shape
[
1
]
*
range0
*
2
)
img
.
setTransform
(
tr
)
plot_data
=
plot_widget_data
(
plot_2D
,
[
img
])
self
.
plot_widgets
.
append
(
plot_data
)
...
...
This diff is collapsed.
Click to expand it.
examples/gui/liveplotting_demo.py
+
3
−
0
View file @
65993668
...
...
@@ -18,6 +18,9 @@ class DummyAwg(qcodes.Instrument):
def
__init__
(
self
,
name
):
super
().
__init__
(
name
)
def
get_idn
(
self
):
return
{}
def
release_waveform_memory
(
self
):
pass
...
...
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