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
Bliss
bliss
Commits
e23e32f3
Commit
e23e32f3
authored
May 04, 2021
by
Valentin Valls
Browse files
Update the scan_info during the prepared event
parent
f4f5960b
Changes
2
Hide whitespace changes
Inline
Side-by-side
bliss/data/nodes/scan.py
View file @
e23e32f3
...
...
@@ -42,7 +42,7 @@ class ScanNode(DataNodeContainer):
def
dataset
(
self
):
return
self
.
parent
def
prepared
(
self
):
def
prepared
(
self
,
scan_info
):
"""Publish PREPARED event in Redis
"""
if
not
self
.
new_node
:
...
...
@@ -51,6 +51,7 @@ class ScanNode(DataNodeContainer):
# TODO: what does the comment above mean?
with
settings
.
pipeline
(
self
.
_prepared_stream
,
self
.
_info
):
event
=
PreparedScanEvent
()
self
.
_info
.
update
(
scan_info
)
self
.
_prepared_stream
.
add_event
(
event
)
def
end
(
self
,
exception
=
None
):
...
...
bliss/scanning/scan.py
View file @
e23e32f3
...
...
@@ -1280,7 +1280,8 @@ class Scan:
self
.
_fill_meta
(
"fill_meta_at_scan_start"
)
self
.
node
.
prepared
()
# The scan info was updated with device metadata
self
.
node
.
prepared
(
self
.
_scan_info
)
self
.
_axes_in_scan
=
self
.
_get_data_axes
(
include_calc_reals
=
True
)
with
execute_pre_scan_hooks
(
self
.
_axes_in_scan
):
...
...
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