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
f8d344ed
Commit
f8d344ed
authored
3 years ago
by
David Hammer
Browse files
Options
Downloads
Patches
Plain Diff
Configure preview assemblers with new maxIdle parameter
parent
5b17e66a
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
+11
-0
11 additions, 0 deletions
src/calng/CalibrationManager.py
with
11 additions
and
0 deletions
src/calng/CalibrationManager.py
+
11
−
0
View file @
f8d344ed
...
@@ -382,6 +382,16 @@ class CalibrationManager(DeviceClientBase, Device):
...
@@ -382,6 +382,16 @@ class CalibrationManager(DeviceClientBase, Device):
accessMode
=
AccessMode
.
INITONLY
,
accessMode
=
AccessMode
.
INITONLY
,
assignment
=
Assignment
.
MANDATORY
)
assignment
=
Assignment
.
MANDATORY
)
maxIdle
=
Double
(
displayedName
=
'
Preview source timeout
'
,
description
=
'
TrainMatcher (used for preview assemblers) has an option
'
'
(maxIdle) to automatically ignore sources which have not
'
'
sent data in the last maxIdle seconds (if maxIdle > 0).
'
'
Useful in case a module fails. If missing source comes
'
'
back, it will be matched again.
'
,
defaultValue
=
1
,
accessMode
=
AccessMode
.
RECONFIGURABLE
)
webserverApi
=
Node
(
webserverApi
=
Node
(
WebserverApiNode
,
WebserverApiNode
,
displayedName
=
'
Webserver API
'
,
displayedName
=
'
Webserver API
'
,
...
@@ -1295,6 +1305,7 @@ class CalibrationManager(DeviceClientBase, Device):
...
@@ -1295,6 +1305,7 @@ class CalibrationManager(DeviceClientBase, Device):
for
(
virtual_id
,
device_id
)
for
(
virtual_id
,
device_id
)
in
correct_device_id_by_module
.
items
()]
in
correct_device_id_by_module
.
items
()]
config
[
'
geometryDevice
'
]
=
self
.
geometryDevice
.
value
config
[
'
geometryDevice
'
]
=
self
.
geometryDevice
.
value
config
[
'
maxIdle
'
]
=
self
.
maxIdle
.
value
if
not
await
self
.
_instantiate_device
(
if
not
await
self
.
_instantiate_device
(
server
,
class_ids
[
'
assembler
'
],
assembler_device_id
,
config
server
,
class_ids
[
'
assembler
'
],
assembler_device_id
,
config
...
...
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