Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
calng
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
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
calng
Commits
22f5e9e1
Commit
22f5e9e1
authored
3 years ago
by
Philipp Schmidt
Committed by
sqsonc
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
manager: Add slot to manually (re)discover managed devices
parent
08a48a5e
No related branches found
No related tags found
1 merge request
!12
Snapshot: field test deployed version as of end of run 202201
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/calng/CalibrationManager.py
+17
-0
17 additions, 0 deletions
src/calng/CalibrationManager.py
with
17 additions
and
0 deletions
src/calng/CalibrationManager.py
+
17
−
0
View file @
22f5e9e1
...
...
@@ -412,6 +412,14 @@ class CalibrationManager(DeviceClientBase, Device):
self
.
state
=
State
.
CHANGING
background
(
self
.
_instantiate_pipeline
())
@Slot
(
displayedName
=
'
Discover managed devices
'
,
description
=
''
,
allowedStates
=
[
State
.
ACTIVE
])
async
def
discoverManagedDevices
(
self
):
self
.
state
=
State
.
CHANGING
background
(
self
.
_discover_managed_devices
())
@Slot
(
displayedName
=
'
Apply managed values
'
,
description
=
'
Set all managed keys to the values currently active on
'
...
...
@@ -543,6 +551,15 @@ class CalibrationManager(DeviceClientBase, Device):
for
device_id
in
devices
:
self
.
_check_new_device
(
device_id
,
devices
[
device_id
,
'
classId
'
])
async
def
_discover_managed_devices
(
self
):
self
.
_daq_device_ids
.
clear
()
self
.
_domain_device_ids
.
clear
()
self
.
_correction_device_ids
.
clear
()
await
self
.
_check_topology
()
self
.
state
=
State
.
ACTIVE
async
def
_get_shared_keys
(
self
,
device_ids
,
keys
):
"""
Find the most common property values on devices.
"""
...
...
This diff is collapsed.
Click to expand it.
David Hammer
@hammerd
mentioned in commit
3566342d
·
2 years ago
mentioned in commit
3566342d
mentioned in commit 3566342d031db1bb435b6430f100afdbaaa6c4bf
Toggle commit list
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