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
41d0cf96
Commit
41d0cf96
authored
3 years ago
by
David Hammer
Browse files
Options
Downloads
Patches
Plain Diff
Use TrainMatcher for groups with support from manager + bridge fix
parent
f6759a41
No related branches found
No related tags found
2 merge requests
!12
Snapshot: field test deployed version as of end of run 202201
,
!3
Base correction device, CalCat interaction, DSSC and AGIPD devices
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/calng/CalibrationManager.py
+18
-3
18 additions, 3 deletions
src/calng/CalibrationManager.py
src/calng/ShmemToZMQ.py
+1
-3
1 addition, 3 deletions
src/calng/ShmemToZMQ.py
with
19 additions
and
6 deletions
src/calng/CalibrationManager.py
+
18
−
3
View file @
41d0cf96
...
...
@@ -47,7 +47,7 @@ class ClassIdsNode(Configurable):
displayedName
=
'
Group matcher class
'
,
description
=
'
Device class to use for matching the stream output of a
'
'
module group.
'
,
defaultValue
=
'
Module
Matcher
'
,
defaultValue
=
'
Train
Matcher
'
,
accessMode
=
AccessMode
.
INITONLY
,
assignment
=
Assignment
.
MANDATORY
)
...
...
@@ -63,7 +63,7 @@ class ClassIdsNode(Configurable):
displayedName
=
'
Preview matcher class
'
,
description
=
'
Device class to use for matching the output of a preview
'
'
layer.
'
,
defaultValue
=
'
Module
Match
er
'
,
defaultValue
=
'
Module
Stack
er
'
,
accessMode
=
AccessMode
.
INITONLY
,
assignment
=
Assignment
.
MANDATORY
)
...
...
@@ -439,6 +439,13 @@ class CalibrationManager(DeviceClientBase, Device):
defaultValue
=
True
,
accessMode
=
AccessMode
.
RECONFIGURABLE
)
autoActivateGroupMatchers
=
Bool
(
displayedName
=
'
Activate group matchers automatically
'
,
description
=
'
Whether to activate all group matchers (feeding group bridges)
'
'
immediately after instantation
'
,
defaultValue
=
True
,
accessMode
=
AccessMode
.
RECONFIGURABLE
)
outputAxisOrder
=
String
(
displayedName
=
'
Output axis order
'
,
description
=
'
Axes of main data output can be reordered after correction.
'
...
...
@@ -766,7 +773,7 @@ class CalibrationManager(DeviceClientBase, Device):
# If some servers are still up, go for the kill.
if
up_names
:
self
.
logger
.
warn
(
'
Some servers still up after waiting for
'
'
downTimeout: {up_names}
'
)
f
'
downTimeout:
{
up_names
}
'
)
try
:
await
wait_for
(
gather
(
...
...
@@ -963,6 +970,14 @@ class CalibrationManager(DeviceClientBase, Device):
matcher_device_id
,
config
):
return
elif
self
.
autoActivateGroupMatchers
:
async
def
_activate_matcher
(
device_id
):
with
await
getDevice
(
device_id
)
as
device
:
await
sleep
(
3
)
if
device
.
state
==
State
.
PASSIVE
:
await
device
.
start
()
background
(
_activate_matcher
(
matcher_device_id
))
# Group bridge, if applicable.
if
with_bridge
:
...
...
This diff is collapsed.
Click to expand it.
src/calng/ShmemToZMQ.py
+
1
−
3
View file @
41d0cf96
import
threading
from
time
import
time
import
shmem_utils
from
karabo.bound
import
KARABO_CLASSINFO
,
VECTOR_STRING_ELEMENT
from
PipeToZeroMQ
import
PipeToZeroMQ
,
conversion
,
device_schema
...
...
@@ -74,8 +73,7 @@ class ShmemToZMQ(PipeToZeroMQ.PipeToZeroMQ):
metadata
=
self
.
_extract_metadata
(
all_meta
,
idx
)
source
=
metadata
[
"
source
"
]
if
source
not
in
self
.
sources
:
schema
=
self
.
getFullSchema
()
self
.
appendSchema
(
device_schema
.
timestamp_schema
(
schema
,
source
))
self
.
appendSchema
(
device_schema
.
timestamp_schema
(
source
))
self
.
sources
.
add
(
source
)
self
.
_time_info
(
metadata
,
actual
,
self
.
info
)
...
...
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