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
BCU-Vercors
ID26
id26
Commits
1cddba58
Commit
1cddba58
authored
Sep 28, 2021
by
bliss administrator
Browse files
use ScanInfo - needs flint backport from 1.9 id26/d22f5b7
parent
6c1a9e78
Changes
1
Hide whitespace changes
Inline
Side-by-side
id26/scripts/fscan.py
View file @
1cddba58
...
...
@@ -13,6 +13,7 @@ from bliss.common.logtools import (
log_exception
)
from
bliss.scanning.scan
import
Scan
,
ScanState
,
DataWatchCallback
from
bliss.scanning.scan_info
import
ScanInfo
from
id26.scripts.energy
import
(
stepstoenergy
,
...
...
@@ -148,16 +149,31 @@ def fscan(
print
(
'after aqcuisition chain definition.'
)
print
(
f
"@
{
time
.
time
()
-
time0
:
.
3
f
}
s"
)
scan_info
=
{
scan_info
_dict
=
{
"title"
:
f
"fscan
{
energy_start
}
{
energy_end
}
{
duration
}
{
energy_step
}
"
,
"start"
:
energy_start
,
"stop"
:
energy_end
,
"npoints"
:
nbpoints
,
"type"
:
"fscan"
,
"count_time"
:
exp_time
,
"data_dim"
:
2
,
}
scan_info
=
ScanInfo
()
scan_info
.
update
(
scan_info_dict
)
xname
=
'hdh_energy'
scan_info
.
add_curve_plot
(
x
=
xname
)
scan_info
.
set_channel_meta
(
xname
,
start
=
energy_start
,
stop
=
energy_end
,
points
=
nbpoints
,
)
#============================
scan
=
Scan
(
chain
,
name
=
"fscan"
,
...
...
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