Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bliss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Alisher Gaibulaev
bliss
Commits
5a12097f
Commit
5a12097f
authored
4 years ago
by
Sebastien Petitdemange
Browse files
Options
Downloads
Patches
Plain Diff
xia: unsure to send the last pixel acquired.
parent
3efa892b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bliss/controllers/mca/handel/interface.py
+13
-5
13 additions, 5 deletions
bliss/controllers/mca/handel/interface.py
with
13 additions
and
5 deletions
bliss/controllers/mca/handel/interface.py
+
13
−
5
View file @
5a12097f
...
...
@@ -852,13 +852,18 @@ def _raw_read(acquisition_number, queue):
send_pixel_task
=
None
try
:
current_pixel_event
=
gevent
.
event
.
Event
()
current_pixel_dict
=
{
"
current
"
:
-
1
}
current_pixel_dict
=
{
"
current
"
:
-
1
,
"
continue
"
:
True
}
def
send_current_pixel
():
while
True
:
current_pixel
=
-
1
while
(
current_pixel_dict
[
"
continue
"
]
or
current_pixel
!=
current_pixel_dict
[
"
current
"
]
):
current_pixel_event
.
wait
()
current_pixel_event
.
clear
()
event
.
send
(
module
,
"
current_pixel
"
,
current_pixel_dict
[
"
current
"
])
current_pixel
=
current_pixel_dict
[
"
current
"
]
event
.
send
(
module
,
"
current_pixel
"
,
current_pixel
)
def
poll_data
(
sent
):
current
,
data
,
statistics
=
synchronized_poll_data
()
...
...
@@ -886,6 +891,9 @@ def _raw_read(acquisition_number, queue):
sent
=
poll_data
(
sent
)
# get last points
poll_data
(
sent
)
current_pixel_dict
[
"
continue
"
]
=
False
current_pixel_event
.
set
()
except
StopIteration
:
pass
except
Exception
as
e
:
...
...
@@ -893,8 +901,8 @@ def _raw_read(acquisition_number, queue):
raise
finally
:
queue
.
put
(
StopIteration
)
if
send_pixel_task
is
not
None
:
send_pixel_task
.
kill
()
if
send_pixel_task
:
send_pixel_task
.
join
()
# Not exposed
...
...
This diff is collapsed.
Click to expand it.
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