Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-frelon
Commits
89cccd0e
Commit
89cccd0e
authored
Aug 21, 2014
by
Alejandro Homs Puron
Browse files
* Monitor LastBaseImageReady and LastImageReady in test_frelon_control.py
parent
9c46d8b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_frelon_control.py
View file @
89cccd0e
...
...
@@ -45,6 +45,8 @@ class ImageStatusCallback(Core.CtControl.ImageStatusCallback):
@
Core
.
DEB_MEMBER_FUNCT
def
imageStatusChanged
(
self
,
img_status
):
last_acq_frame_nb
=
img_status
.
LastImageAcquired
;
last_base_frame_nb
=
img_status
.
LastBaseImageReady
;
last_ready_frame_nb
=
img_status
.
LastImageReady
;
last_saved_frame_nb
=
img_status
.
LastImageSaved
;
if
last_acq_frame_nb
==
0
:
...
...
@@ -56,6 +58,14 @@ class ImageStatusCallback(Core.CtControl.ImageStatusCallback):
if
((
last_acq_frame_nb
==
self
.
m_nb_frames
-
1
)
and
(
self
.
m_acq_state
.
get
()
==
Core
.
AcqState
.
Acquiring
)):
msg
=
'All frames acquired!'
if
((
last_base_frame_nb
==
self
.
m_nb_frames
-
1
)
and
(
self
.
m_acq_state
.
get
()
==
Core
.
AcqState
.
Acquiring
)):
msg
=
'All frames internally processed!'
if
((
last_ready_frame_nb
==
self
.
m_nb_frames
-
1
)
and
(
self
.
m_acq_state
.
get
()
==
Core
.
AcqState
.
Acquiring
)):
msg
=
'All frames processed!'
self
.
m_acq_state
.
set
(
Core
.
AcqState
.
Saving
)
acq_state_changed
=
True
...
...
@@ -67,8 +77,10 @@ class ImageStatusCallback(Core.CtControl.ImageStatusCallback):
now
=
time
.
time
()
if
((
now
-
self
.
m_last_print_ts
>=
self
.
m_print_time
)
or
acq_state_changed
):
deb
.
Always
(
"Last Acquired: %8d, Last Saved: %8d"
%
(
last_acq_frame_nb
,
last_saved_frame_nb
))
deb
.
Always
(
"Last Acquired: %8d, Last Base: %8d, "
\
"Last Ready: %8d, Last Saved: %8d"
%
(
last_acq_frame_nb
,
last_base_frame_nb
,
last_ready_frame_nb
,
last_saved_frame_nb
))
self
.
m_last_print_ts
=
now
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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