Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ID01
id01
Commits
0f0a1008
Commit
0f0a1008
authored
Aug 27, 2020
by
Sebastien Petitdemange
Committed by
Emmanuel Papillon
Aug 27, 2020
Browse files
camera: added an generic entry in the kmap config
parent
6e9759a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
id01/scripts/kmap.py
View file @
0f0a1008
...
...
@@ -544,6 +544,31 @@ def _add_detectors(
)
chain
.
add
(
lima_master
,
eiger_roi_counters
)
# generic camera
l_camera
=
kmap_dict
.
get
(
'camera'
,[])
for
camera_params
in
l_camera
:
device
=
camera_params
[
'device'
]
if
device
.
name
in
enabled_device_name
:
detectors_2d
.
add
(
device
)
extra_latency
=
camera_params
.
get
(
'extra_latency'
,
0
)
cam_expo_time
=
expo_time
-
device
.
proxy
.
latency_time
-
latency_time
-
extra_latency
lima_master
=
LimaAcquisitionMaster
(
device
,
acq_nb_frames
=
nb_points
,
acq_trigger_mode
=
"EXTERNAL_TRIGGER_MULTI"
,
acq_expo_time
=
cam_expo_time
,
prepare_once
=
True
,
start_once
=
True
,
)
lima_master
.
add_counter
(
device
.
image
)
chain
.
add
(
top_master
,
lima_master
)
roi_counters
=
device
.
counter_groups
.
roi_counters
if
roi_counters
:
device_roi_counters
=
IntegratingCounterAcquisitionSlave
(
roi_counters
,
npoints
=
nb_points
,
count_time
=
expo_time
)
chain
.
add
(
lima_master
,
device_roi_counters
)
# vlm 1 and 2
save_flag
=
True
for
cam_name
in
vlms_cameras_name
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment