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
5097c960
Commit
5097c960
authored
2 years ago
by
Sander de Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Data browser live plotting should only check for updates on selected project, setup and sample
parent
3cb9874c
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
+1
-0
1 addition, 0 deletions
CHANGELOG.md
core_tools/data/SQL/queries/dataset_gui_queries.py
+12
-2
12 additions, 2 deletions
core_tools/data/SQL/queries/dataset_gui_queries.py
core_tools/data/gui/qml/GUI_controll.py
+10
-3
10 additions, 3 deletions
core_tools/data/gui/qml/GUI_controll.py
with
23 additions
and
5 deletions
CHANGELOG.md
+
1
−
0
View file @
5097c960
...
...
@@ -12,6 +12,7 @@ All notable changes to core_tools will be documented in this file.
-
Added get_idn to Instruments gates, hardware, M3102A.
-
Fixed resetting histogram
-
Added option to disable live plotting of data browser at startup
-
Data browser live plotting now only checks for updates on selected project, setup and sample.
## \[1.4.6] - 2022-10-17
-
Improved logfile format
...
...
This diff is collapsed.
Click to expand it.
core_tools/data/SQL/queries/dataset_gui_queries.py
+
12
−
2
View file @
5097c960
...
...
@@ -147,8 +147,18 @@ class query_for_measurement_results:
return
query_for_measurement_results
.
_to_measurement_results
(
res
)
@staticmethod
def
detect_new_meaurements
(
n_records
=
0
,
remote
=
False
):
statement
=
"
SELECT count(*) from global_measurement_overview;
"
def
detect_new_meaurements
(
n_records
=
0
,
remote
=
False
,
project
=
None
,
set_up
=
None
,
sample
=
None
):
statement
=
"
SELECT count(*) from global_measurement_overview
"
statement
+=
"
WHERE 1=1
"
if
sample
is
not
None
:
statement
+=
f
"
and sample =
'
{
sample
}
'
"
if
set_up
is
not
None
:
statement
+=
f
"
and set_up =
'
{
set_up
}
'
"
if
project
is
not
None
:
statement
+=
f
"
and project =
'
{
project
}
'
"
statement
+=
"
;
"
res
=
query_for_measurement_results
.
_execute
(
statement
,
remote
)
update
=
False
...
...
This diff is collapsed.
Click to expand it.
core_tools/data/gui/qml/GUI_controll.py
+
10
−
3
View file @
5097c960
...
...
@@ -116,8 +116,6 @@ class signale_handler(QtQuick.QQuickView):
self
.
_data_filter
.
set_up_index
,
self
.
_data_filter
.
sample_index
)
_
,
self
.
measurement_count
=
query_for_measurement_results
.
detect_new_meaurements
(
self
.
measurement_count
)
self
.
updating
=
False
self
.
timer
=
QtCore
.
QTimer
()
self
.
timer
.
setInterval
(
500
)
...
...
@@ -144,6 +142,11 @@ class signale_handler(QtQuick.QQuickView):
obj
=
self
.
win
.
findChild
(
QtCore
.
QObject
,
"
combobox_sample
"
)
obj
.
setProperty
(
"
currentIndex
"
,
self
.
_data_filter
.
sample_index
)
_
,
self
.
measurement_count
=
query_for_measurement_results
.
detect_new_meaurements
(
self
.
measurement_count
,
project
=
self
.
_data_filter
.
project
,
set_up
=
self
.
_data_filter
.
set_up
,
sample
=
self
.
_data_filter
.
sample
)
self
.
update_date_model
()
self
.
update_date_selection
(
0
)
...
...
@@ -176,7 +179,11 @@ class signale_handler(QtQuick.QQuickView):
return
try
:
self
.
updating
=
True
update
,
self
.
measurement_count
=
query_for_measurement_results
.
detect_new_meaurements
(
self
.
measurement_count
)
update
,
self
.
measurement_count
=
query_for_measurement_results
.
detect_new_meaurements
(
self
.
measurement_count
,
project
=
self
.
_data_filter
.
project
,
set_up
=
self
.
_data_filter
.
set_up
,
sample
=
self
.
_data_filter
.
sample
)
if
update
==
True
:
self
.
update_date_model
()
...
...
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